spec/calc_spec.rb in calc-nik-0.0.4 vs spec/calc_spec.rb in calc-nik-0.0.5
- old
+ new
@@ -26,6 +26,13 @@
it "subsctract sum of stack from 0" do
@c.minus.should == -28
@c_short.minus.should == -1
@c.instance_variable_get("@numbers").should == []
end
-end
\ No newline at end of file
+end
+
+describe Calc_c do
+ it "Checks for simple palindromes" do
+ Calc_c.palindrom?("abbba").should eql(true)
+ Calc_c.palindrom?("abbea").should eql(false)
+ end
+end