diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-30 15:05:41 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-30 15:06:03 -0700 |
| commit | ab4ebdf1751158391100efb0002f40b1d7f6314c (patch) | |
| tree | be675ed7b35164a24bdae5e8f1d3dd73af98490f /lib/os.nom | |
| parent | 7c488dd266466f80e55a3f02050f4e4a019d64b5 (diff) | |
Changed autoformatting rules to ensure tests get clumped together with
the thing below them.
Diffstat (limited to 'lib/os.nom')
| -rw-r--r-- | lib/os.nom | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -4,7 +4,6 @@ test: path of Nomsu file "lib/os.nom" - action [path of Nomsu file %filename]: lua> "for i,f in Files.walk(\%filename) do return f end" barf "Could not find file: \%filename" @@ -18,11 +17,10 @@ action [sh> %cmd]: test: read file "lib/os.nom" - action [read file %filename] (=lua "Files.read(\%filename)") + test: for file %f in "core": do nothing - compile [for file %f in %path %body] to (..) Lua ".." for i,\(%f as lua expr) in Files.walk(\(%path as lua expr)) do @@ -52,16 +50,14 @@ action [..] test: assume ((line number of 3 in "x\ny") == 2) - action [line number of %pos in %str] (=lua "Files.get_line_number(\%str, \%pos)") + test: assume ((line 2 in "one\ntwo\nthree") == "two") - action [line %line_num in %str] (=lua "Files.get_line(\%str, \%line_num)") test: assume (source lines of \(this)) - action [source lines of %tree]: %source = (%tree.source if (%tree is syntax tree) else %tree) %file = (read file %source.filename) |
