spec/unibits_spec.rb in unibits-2.4.0 vs spec/unibits_spec.rb in unibits-2.5.0

- old
+ new

@@ -65,9 +65,16 @@ result.must_match "C" result.must_match "43" result.must_match "01000011" end + it "works with GB1988" do + result = Paint.unpaint(Unibits.visualize("ASCII string".force_encoding('GB1988'))) + result.must_match "C" + result.must_match "43" + result.must_match "01000011" + end + it "works with 'ISO-8859-X' encodings" do string = "\xBC Idiosyncr\xE4tic\n\x91".force_encoding("ISO-8859-1") result = Paint.unpaint(Unibits.visualize(string)) result.must_match "BC" # ¼ result.must_match "E4" # ä