diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-11-22 16:09:50 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-11-22 16:09:50 +0900 |
| commit | b4f9b031deaf7c75dad7aa10f2318bb37e268fa3 (patch) | |
| tree | 6e38cc9b61330d34d09e157bca406dc1b084198c /test/t/lang.rb | |
| parent | 284a1d12ee6b0fdd77b042771f5db833112fc14e (diff) | |
| download | mruby-b4f9b031deaf7c75dad7aa10f2318bb37e268fa3.tar.gz mruby-b4f9b031deaf7c75dad7aa10f2318bb37e268fa3.zip | |
Some cosmetic changes
Diffstat (limited to 'test/t/lang.rb')
| -rwxr-xr-x | test/t/lang.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/t/lang.rb b/test/t/lang.rb index 57c375643..c28bcfa92 100755 --- a/test/t/lang.rb +++ b/test/t/lang.rb @@ -8,7 +8,7 @@ #
# For example, the following mruby code:
#
-# if i > 0 and i < 10 then
+# if i > 0 and i < 10
#
# compiles to the following byte code:
#
@@ -27,21 +27,21 @@ assert('and', '11.2.3') do
a = 1
- if a > 0 and a < 10 then
+ if a > 0 and a < 10
b = 1
else
b = 0
end
assert_equal 1, b
- if a < 0 and a < 10 then
+ if a < 0 and a < 10
b = 1
else
b = 0
end
assert_equal 0, b
- if a < 0 and a > 10 then
+ if a < 0 and a > 10
b = 1
else
b = 0
@@ -51,21 +51,21 @@ end assert('or','11.2.4') do
a = 1
- if a > 0 or a < 10 then
+ if a > 0 or a < 10
b = 1
else
b = 0
end
assert_equal 1, b
- if a < 0 or a < 10 then
+ if a < 0 or a < 10
b = 1
else
b = 0
end
assert_equal 1, b
- if a < 0 or a > 10 then
+ if a < 0 or a > 10
b = 1
else
b = 0
|
