1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
-- want --
bad_after_import.cue "dep3"
bad_after_package.cue
bad_after_package_import.cue "dep4"
bad_imports.cue: error: string literal not terminated
bad_lone.cue
bad_package_imports.cue: error: string literal not terminated
-- want-imports --
error: cannot read "bad_imports.cue": string literal not terminated
-- bad_imports.cue --
// Invalid import syntax without a package clause.
import "dep1
-- bad_package_imports.cue --
// Invalid import syntax with a package clause; should fail.
package p
import "dep2
-- bad_lone.cue --
// Invalid syntax without a package clause, assumed to be after imports.
(unterminated
-- bad_after_package.cue --
// Invalid syntax with a package clause, assumed to be after imports.
package p
(unterminated
-- bad_after_import.cue --
// Invalid syntax after some imports without a package clause.
import "dep3"
(unterminated
-- bad_after_package_import.cue --
// Invalid syntax after some imports with a package clause.
package p
import "dep4"
(unterminated
|