Sha256: 346456381edbbe8f13d6644a41ed0e83211f477c6c3751de52b0e81299a57588
Contents?: true
Size: 506 Bytes
Versions: 4
Compression:
Stored size: 506 Bytes
Contents
require 'spec_helper' require 'libsql' require 'libsql/boolean' describe ::Libsql::Boolean do %w[ True Y Yes T 1 ].each do |v| it "converts #{v} to true" do ::Libsql::Boolean.to_bool(v).should == true end end %w[ False F f No n 0 ].each do |v| it "converts #{v} to false " do ::Libsql::Boolean.to_bool(v).should == false end end %w[ other things nil ].each do |v| it "converts #{v} to nil" do ::Libsql::Boolean.to_bool(v).should == nil end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
libsql-0.1.0-x64-mingw-ucrt | spec/boolean_spec.rb |
libsql-0.1.0-x64-mingw32 | spec/boolean_spec.rb |
libsql-0.1.0-x86-mingw32 | spec/boolean_spec.rb |
libsql-0.1.0 | spec/boolean_spec.rb |