diff options
author | murphy <murphy@rubychan.de> | 2006-10-17 10:12:39 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2006-10-17 10:12:39 +0000 |
commit | ecddd306d8719993266de43311b36c888057b32a (patch) | |
tree | 2edcabd29f670ed0c2007eeae12ebe38669985ae /sample | |
parent | 5e0d6d97bf4676ab1c1ca9b06590dd774d263b0d (diff) | |
download | coderay-ecddd306d8719993266de43311b36c888057b32a.tar.gz |
Samples: Rename .out to .expected.
Diffstat (limited to 'sample')
-rw-r--r-- | sample/cache.expected (renamed from sample/cache.out) | 0 | ||||
-rw-r--r-- | sample/count.expected (renamed from sample/count.out) | 0 | ||||
-rw-r--r-- | sample/css.expected (renamed from sample/css.out) | 0 | ||||
-rw-r--r-- | sample/div.expected (renamed from sample/div.out) | 0 | ||||
-rw-r--r-- | sample/dump.expected (renamed from sample/dump.out) | 0 | ||||
-rw-r--r-- | sample/encoder.expected (renamed from sample/encoder.out) | 0 | ||||
-rw-r--r-- | sample/global_vars.expected (renamed from sample/global_vars.out) | 0 | ||||
-rw-r--r-- | sample/global_vars2.expected (renamed from sample/global_vars2.out) | 0 | ||||
-rw-r--r-- | sample/highlight.expected (renamed from sample/highlight.out) | 0 | ||||
-rw-r--r-- | sample/html.expected (renamed from sample/html.out) | 0 | ||||
-rw-r--r-- | sample/html2.expected (renamed from sample/html2.out) | 0 | ||||
-rw-r--r-- | sample/html_list.expected (renamed from sample/html_list.out) | 0 | ||||
-rw-r--r-- | sample/load_encoder.expected (renamed from sample/load_encoder.out) | 0 | ||||
-rw-r--r-- | sample/load_scanner.expected (renamed from sample/load_scanner.out) | 0 | ||||
-rw-r--r-- | sample/more.expected (renamed from sample/more.out) | 0 | ||||
-rw-r--r-- | sample/scanner.expected (renamed from sample/scanner.out) | 0 | ||||
-rw-r--r-- | sample/simple.expected (renamed from sample/simple.out) | 0 | ||||
-rw-r--r-- | sample/stream2.expected (renamed from sample/stream2.out) | 0 | ||||
-rw-r--r-- | sample/suite.rb | 4 | ||||
-rw-r--r-- | sample/tokens.expected (renamed from sample/tokens.out) | 0 |
20 files changed, 2 insertions, 2 deletions
diff --git a/sample/cache.out b/sample/cache.expected index f815e88..f815e88 100644 --- a/sample/cache.out +++ b/sample/cache.expected diff --git a/sample/count.out b/sample/count.expected index 7f493b6..7f493b6 100644 --- a/sample/count.out +++ b/sample/count.expected diff --git a/sample/css.out b/sample/css.expected index 713e3e7..713e3e7 100644 --- a/sample/css.out +++ b/sample/css.expected diff --git a/sample/div.out b/sample/div.expected index ec9676d..ec9676d 100644 --- a/sample/div.out +++ b/sample/div.expected diff --git a/sample/dump.out b/sample/dump.expected index 2c24962..2c24962 100644 --- a/sample/dump.out +++ b/sample/dump.expected diff --git a/sample/encoder.out b/sample/encoder.expected index c221d25..c221d25 100644 --- a/sample/encoder.out +++ b/sample/encoder.expected diff --git a/sample/global_vars.out b/sample/global_vars.expected index 0dc13c8..0dc13c8 100644 --- a/sample/global_vars.out +++ b/sample/global_vars.expected diff --git a/sample/global_vars2.out b/sample/global_vars2.expected index 964cf50..964cf50 100644 --- a/sample/global_vars2.out +++ b/sample/global_vars2.expected diff --git a/sample/highlight.out b/sample/highlight.expected index 7b50566..7b50566 100644 --- a/sample/highlight.out +++ b/sample/highlight.expected diff --git a/sample/html.out b/sample/html.expected index 1e29612..1e29612 100644 --- a/sample/html.out +++ b/sample/html.expected diff --git a/sample/html2.out b/sample/html2.expected index ead61b2..ead61b2 100644 --- a/sample/html2.out +++ b/sample/html2.expected diff --git a/sample/html_list.out b/sample/html_list.expected index aec2cf5..aec2cf5 100644 --- a/sample/html_list.out +++ b/sample/html_list.expected diff --git a/sample/load_encoder.out b/sample/load_encoder.expected index 1cff356..1cff356 100644 --- a/sample/load_encoder.out +++ b/sample/load_encoder.expected diff --git a/sample/load_scanner.out b/sample/load_scanner.expected index a2d200d..a2d200d 100644 --- a/sample/load_scanner.out +++ b/sample/load_scanner.expected diff --git a/sample/more.out b/sample/more.expected index aa26e61..aa26e61 100644 --- a/sample/more.out +++ b/sample/more.expected diff --git a/sample/scanner.out b/sample/scanner.expected index d35a06d..d35a06d 100644 --- a/sample/scanner.out +++ b/sample/scanner.expected diff --git a/sample/simple.out b/sample/simple.expected index 7e9206a..7e9206a 100644 --- a/sample/simple.out +++ b/sample/simple.expected diff --git a/sample/stream2.out b/sample/stream2.expected index 83aee98..83aee98 100644 --- a/sample/stream2.out +++ b/sample/stream2.expected diff --git a/sample/suite.rb b/sample/suite.rb index e38cae4..4f1b612 100644 --- a/sample/suite.rb +++ b/sample/suite.rb @@ -25,7 +25,7 @@ class CodeRaySuite < TestCase for input in Dir["*.rb"] - %w(server.rb stream.rb suite.rb)
puts "[ testing #{input}... ]"
name = File.basename(input, ".rb")
- output = name + '.out'
+ output = name + '.expected'
code = File.open(input, 'rb') { |f| break f.read }
result = `ruby -wI../lib #{input}`
@@ -33,7 +33,7 @@ class CodeRaySuite < TestCase if File.exist? output
expected = File.read output
ok = expected == result
- computed = output.sub('.expected', '.computed')
+ computed = output.sub('.expected', '.actual')
unless ok
File.open(computed, 'w') { |f| f.write result }
print `diff #{output} #{computed}` if $DEBUG
diff --git a/sample/tokens.out b/sample/tokens.expected index bbc2b94..bbc2b94 100644 --- a/sample/tokens.out +++ b/sample/tokens.expected |