Sha256: b1560e605972a0414fc8b5cdedcececdaa144cf7178dc4884b70b1ae531b0fe4
Contents?: true
Size: 569 Bytes
Versions: 8
Compression:
Stored size: 569 Bytes
Contents
require 'spec_helper' describe Analyzer do let(:content_1) { File.read("spec/fixtures/program_1.rb") } let(:content_2) { File.read("spec/fixtures/program_2.rb") } context "program_1" do let(:analyzer) { Analyzer.new(content_1) } it "matches the manual calculation of complexity of 4" do expect(analyzer.complexity).to eq(4) end end context "program_2" do let(:analyzer) { Analyzer.new(content_2) } it "matches the manual calculation of complexity of 5" do expect(analyzer.complexity).to eq(5) end end end
Version data entries
8 entries across 8 versions & 1 rubygems