spec/code/parser/number_spec.rb in code-ruby-0.5.6 vs spec/code/parser/number_spec.rb in code-ruby-0.6.0
- old
+ new
@@ -1,12 +1,11 @@
+# frozen_string_literal: true
+
require "spec_helper"
RSpec.describe Code::Parser::Number do
- subject { Code::Parser.parse(input) }
-
%w[0 1 1.1 123.123 1_000.12_244 0xf0 0o70 0b10].each do |input|
- context input do
- let(:input) { input }
- it { subject }
+ it "parses #{input}" do
+ Code::Parser.parse(input)
end
end
end