test/proquint_test.rb in proquint-0.0.1 vs test/proquint_test.rb in proquint-0.0.2
- old
+ new
@@ -33,9 +33,13 @@
Proquint.encode(0x7f000001).must_equal 'lusab-babad'
Proquint.encode(1234567890123456).must_equal 'babah-karij-gufap-rorab'
Proquint.encode(0x1234567890abcdef).must_equal 'damuh-jinum-nafor-suloz'
end
+ it "can encode strings" do
+ Proquint.encode("Hello").must_equal 'badam-badoj-bados-bados-badoz'
+ end
+
it "can encode and decode IP addresses" do
Proquint.encode("192.168.1.1").must_equal "safom-bahad"
Proquint.decode("safom-bahad").must_equal [49320, 257]
end