Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jul 16, 2020
1 parent d0073c4 commit 8851bef
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/tests/units/lexer-test.r3
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,23 @@ Rebol [

===end-group===

===start-group=== "Construction syntax"
--test-- {any-string!}
--assert "ab" = load {#[string! "ab"]}
--assert "b" = load {#[string! "ab" 2]}
--assert %ab = load {#[file! "ab"]}
--assert %b = load {#[file! "ab" 2]}
;@@ https://github.com/Oldes/Rebol-issues/issues/1034
--assert error? try [load {#[string! "ab" 2 x]}]
--assert error? try [load {#[file! "ab" x]}]
--assert error? try [load {#[file! "ab" 2 x]}]
--assert error? try [load {#[string! "ab" x]}]
--assert error? try [load {#[string! "ab" 2 x]}]
--assert error? try [load {#[file! "ab" x]}]
--assert error? try [load {#[file! "ab" 2 x]}]

===end-group===


===start-group=== "Special tests"
;if "true" <> get-env "CONTINUOUS_INTEGRATION" [
Expand Down

0 comments on commit 8851bef

Please sign in to comment.