Skip to content

Commit

Permalink
TESTS: added test to namespace-test.r rre Issue #282
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterWAWood committed Nov 1, 2012
1 parent 080470f commit c961322
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions red-system/tests/source/compiler/namespace-test.r
Expand Up @@ -93,6 +93,13 @@ change-dir %../
}
--assert-msg? "*** Compilation Error: context has to be declared at root level"

--test-- "nmicd2 - name clash with previously delared word - issue #282"
--compile-this {
nmicd2-c: "hello"
nmicd2-c: context [b: 2]
}
--assert-msg? "*** Compilation Error: context name is already taken"

===end-group===

~~~end-file~~~
Expand Down

0 comments on commit c961322

Please sign in to comment.