diff --git a/spec/oga/xpath/evaluator/calls/number_spec.rb b/spec/oga/xpath/evaluator/calls/number_spec.rb index 231ec6d..887dfef 100644 --- a/spec/oga/xpath/evaluator/calls/number_spec.rb +++ b/spec/oga/xpath/evaluator/calls/number_spec.rb @@ -42,5 +42,9 @@ describe Oga::XPath::Evaluator do example 'return NaN for empty node sets' do @evaluator.evaluate('number(foo)').should be_nan end + + example 'return NaN for empty strings' do + @evaluator.evaluate('number("")').should be_nan + end end end