forked from pmichaud/pmtcl
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
both t/*_namespace.t test run to completion.
- Loading branch information
Showing
3 changed files
with
51 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
# Copyright (C) 2006-2007, The Parrot Foundation. | ||
|
||
source lib/test_more.tcl | ||
plan 6 | ||
plan 5; # +1 skip | ||
|
||
is [::set a ok] {ok} {explicit global command} | ||
is [:::::::set b ok] {ok} {explicit global command, extra colons} | ||
eval_is {::set a ok} {ok} {explicit global command} {TODO NQPRX} | ||
eval_is {:::::::set b ok} {ok} {explicit global command, extra colons} {TODO NQPRX} | ||
|
||
if 0 { ## PARSEFAIL NQPRX | ||
proc ::: {} {return ok} | ||
is [{}] ok {command name, all colons} | ||
} | ||
|
||
eval_is { | ||
:set c ok | ||
} {invalid command name ":set"}\ | ||
{not enough colons, explicit global command} | ||
{not enough colons, explicit global command} {TODO NQPRX} | ||
|
||
eval_is { | ||
foo::bar | ||
} {invalid command name "foo::bar"} \ | ||
{invalid ns command} | ||
{invalid ns command} {TODO NQPRX} | ||
|
||
eval_is { | ||
proc test {} {return ok1} | ||
set a [namespace eval lib {test}] | ||
proc ::lib::test {} {return ok2} | ||
list $a [namespace eval lib {test}] | ||
} {ok1 ok2} {relative namespace} | ||
} {ok1 ok2} {relative namespace} {TODO NQPRX} | ||
|
||
# vim: filetype=tcl: |