nendo 0.6.7 → 0.6.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/VERSION.yml +1 -1
- data/lib/nendo/ruby/builtin_functions.rb +1 -1
- data/lib/nendo/ruby/core.rb +1 -1
- data/test/nendo_spec.rb +13 -0
- data/test/nendo_spec_2.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52fb34bae2c7e139b4c7c4e588691c4e8f50710c
|
4
|
+
data.tar.gz: 91d2520addf241347ce2d8cac4ed0d7a0a800f88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e2ebca8704036e2440a2527988044a523a194a9aa17cc79c2b40af5888af74f58f6e071a14a5c64bb83fbefd6642603459d4e5d523448a0773c786ea415f315
|
7
|
+
data.tar.gz: 5ac568cdf1e22ffc86945bd2f5d76f9dd2828216622a5f4c6bf16c2950a8ffaefb83c676c0497dc0946d3b07e073e00e290355be8aa821246ab2a814d4afeba1
|
data/History.txt
CHANGED
data/VERSION.yml
CHANGED
data/lib/nendo/ruby/core.rb
CHANGED
data/test/nendo_spec.rb
CHANGED
@@ -270,6 +270,19 @@ describe Nendo, "when call evalStr() with comparative operators" do
|
|
270
270
|
@nendo.evalStr( " (eq? 'a-b 'a-b) " ).should == "#t"
|
271
271
|
@nendo.evalStr( " (eq? 'a_b 'a-b) " ).should == "#f"
|
272
272
|
@nendo.evalStr( " (eq? 'a-b 'a_b) " ).should == "#f"
|
273
|
+
@nendo.evalStr( " (eq? 'a-b (intern \"a-b\")) " ).should == "#t"
|
274
|
+
@nendo.evalStr( " (eq? 'a_b (intern \"a-b\")) " ).should == "#f"
|
275
|
+
@nendo.evalStr( " (eq? 'a-b (intern \"a_b\")) " ).should == "#f"
|
276
|
+
@nendo.evalStr( " (= 1 1) " ).should == "#t"
|
277
|
+
@nendo.evalStr( " (= 1 2) " ).should == "#f"
|
278
|
+
@nendo.evalStr( " (= 'a 'a) " ).should == "#t"
|
279
|
+
@nendo.evalStr( " (= 'b 'b) " ).should == "#t"
|
280
|
+
@nendo.evalStr( " (= 'a-b 'a-b) " ).should == "#t"
|
281
|
+
@nendo.evalStr( " (= 'a_b 'a-b) " ).should == "#f"
|
282
|
+
@nendo.evalStr( " (= 'a-b 'a_b) " ).should == "#f"
|
283
|
+
@nendo.evalStr( " (= 'a-b (intern \"a-b\")) " ).should == "#t"
|
284
|
+
@nendo.evalStr( " (= 'a_b (intern \"a-b\")) " ).should == "#f"
|
285
|
+
@nendo.evalStr( " (= 'a-b (intern \"a_b\")) " ).should == "#f"
|
273
286
|
@nendo.evalStr( " (< 1 1) " ).should == "#f"
|
274
287
|
@nendo.evalStr( " (< 1 2) " ).should == "#t"
|
275
288
|
@nendo.evalStr( " (> 1 1) " ).should == "#f"
|
data/test/nendo_spec_2.rb
CHANGED
@@ -408,6 +408,8 @@ describe Nendo, "when call evalStr() with built-in functions" do
|
|
408
408
|
@nendo.evalStr( ' (read-from-string "1") ' ).should == '1'
|
409
409
|
@nendo.evalStr( ' (read-from-string "(+ 1 2)") ' ).should == '(+ 1 2)'
|
410
410
|
@nendo.evalStr( ' (read-from-string "(\"Aa\" \"Bb\" \"Cc\")") ' ).should == '("Aa" "Bb" "Cc")'
|
411
|
+
@nendo.evalStr( ' (eq? \'Aa (car (read-from-string "(Aa Bb Cc)"))) ' ).should == '#t'
|
412
|
+
@nendo.evalStr( ' (= \'Aa (car (read-from-string "(Aa Bb Cc)"))) ' ).should == '#t'
|
411
413
|
lambda { @nendo.evalStr( ' (read-from-string 100) ' ) }.should raise_error(TypeError)
|
412
414
|
@nendo.evalStr( ' (write-to-string 1) ' ).should == '"1"'
|
413
415
|
@nendo.evalStr( ' (write-to-string \'(+ 1 2)) ' ).should == '"(+ 1 2)"'
|
@@ -1815,6 +1817,11 @@ describe Nendo, "when use keyword feature " do
|
|
1815
1817
|
@nendo.evalStr( " (eqv? :a :a) " ).should == "#t"
|
1816
1818
|
@nendo.evalStr( ' (eq? :a (intern ":a")) ' ).should == "#f"
|
1817
1819
|
@nendo.evalStr( ' (eqv? :a (intern ":a")) ' ).should == "#f"
|
1820
|
+
@nendo.evalStr( ' (eq? :a (intern "a")) ' ).should == "#f"
|
1821
|
+
@nendo.evalStr( ' (eqv? :a (intern "a")) ' ).should == "#f"
|
1822
|
+
@nendo.evalStr( " (= :a :a) " ).should == "#t"
|
1823
|
+
@nendo.evalStr( ' (= :a (intern ":a")) ' ).should == "#f"
|
1824
|
+
@nendo.evalStr( ' (= :a (intern "a")) ' ).should == "#f"
|
1818
1825
|
@nendo.evalStr( ' (keyword? (make-keyword "a")) ' ).should == "#t"
|
1819
1826
|
@nendo.evalStr( " :a " ).should == ":a"
|
1820
1827
|
@nendo.evalStr( " ::a " ).should == "::a"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nendo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kiyoka Nishiyama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Nendo is a programming language written in Ruby.
|
14
14
|
email: kiyoka@sumibi.org
|