spec/en_spec.rb in papla-0.0.4 vs spec/en_spec.rb in papla-0.0.5
- old
+ new
@@ -229,7 +229,11 @@
end
it 'rounds to two decimal places' do
subject[3.456].should eq('Three 46/100')
end
+
+ it 'properly handles float precision imperfections' do
+ subject[111_111.2].should eq('One hundred eleven thousand one hundred eleven 20/100')
+ end
end
end