-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
77 additions
and
3 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,3 +1,9 @@ | ||
proc reverse {input} { | ||
throw {NOT_IMPLEMENTED} "Implement this procedure." | ||
proc reverse {text} { | ||
set rtext "" | ||
|
||
foreach char [lreverse [split $text ""]] { | ||
append rtext $char | ||
} | ||
|
||
return $rtext | ||
} |
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
Running automated test file(s): | ||
|
||
|
||
=============================================================================== | ||
|
||
Running: ttclcheck -scan /home/vpayno/git_vpayno/exercism-workspace/tcl/reverse-string | ||
ttclcheck version: 0.18 Copyright 2013 Artur Trzewik | ||
All Rights Reserved. | ||
|
||
GPL licensed software | ||
warn: pass shallow | ||
warn: parsing /home/vpayno/git_vpayno/exercism-workspace/tcl/reverse-string/testHelpers.tcl | ||
warn: parsing /home/vpayno/git_vpayno/exercism-workspace/tcl/reverse-string/reverse-string.tcl | ||
warn: pass collect | ||
warn: parsing /home/vpayno/git_vpayno/exercism-workspace/tcl/reverse-string/testHelpers.tcl | ||
warn: parsing /home/vpayno/git_vpayno/exercism-workspace/tcl/reverse-string/reverse-string.tcl | ||
warn: pass report | ||
warn: parsing /home/vpayno/git_vpayno/exercism-workspace/tcl/reverse-string/testHelpers.tcl | ||
/home/vpayno/git_vpayno/exercism-workspace/tcl/reverse-string/testHelpers.tcl: parsing file /home/vpayno/git_vpayno/exercism-workspace/tcl/reverse-string/testHelpers.tcl | ||
/home/vpayno/git_vpayno/exercism-workspace/tcl/reverse-string/testHelpers.tcl:17: unknown variable ::tcltest::numTests <<$::tcltest::numTests>> | ||
/home/vpayno/git_vpayno/exercism-workspace/tcl/reverse-string/testHelpers.tcl: errors file: 1 | ||
warn: parsing /home/vpayno/git_vpayno/exercism-workspace/tcl/reverse-string/reverse-string.tcl | ||
/home/vpayno/git_vpayno/exercism-workspace/tcl/reverse-string/reverse-string.tcl: parsing file /home/vpayno/git_vpayno/exercism-workspace/tcl/reverse-string/reverse-string.tcl | ||
/home/vpayno/git_vpayno/exercism-workspace/tcl/reverse-string/reverse-string.tcl: errors file: 0 | ||
errors all: 1 (3.23% lines) | ||
lines: 31 in: 00:00:00 34 lines/sec: 911.76 | ||
commands: 3 variables: 1 | ||
signature params 5 unknown: 2 40.00% unknown variables 0.00% | ||
|
||
real 0m0.092s | ||
user 0m0.076s | ||
sys 0m0.016s | ||
|
||
=============================================================================== | ||
|
||
Running: nagelfar -s _ ./reverse-string.tcl | ||
Checking file ./reverse-string.tcl | ||
|
||
real 0m0.031s | ||
user 0m0.026s | ||
sys 0m0.005s | ||
|
||
=============================================================================== | ||
|
||
Running: RUN_ALL=1 tclsh ./reverse-string.test | ||
reverse-string.test: Total 7 Passed 7 Skipped 0 Failed 0 | ||
|
||
real 0m0.010s | ||
user 0m0.005s | ||
sys 0m0.005s | ||
|
||
|
||
=============================================================================== | ||
|
||
Running: misspell . | ||
|
||
real 0m0.018s | ||
user 0m0.022s | ||
sys 0m0.009s | ||
|
||
=============================================================================== | ||
|