Fixed #117 (DTrans#itype broken)

This commit is contained in:
Matthias Koefferlein
2018-04-24 21:26:21 +02:00
parent a4b396535f
commit 08bcd1e418
3 changed files with 48 additions and 1 deletions
+2
View File
@@ -44,6 +44,8 @@ class DBTrans_TestClass < TestBase
assert_equal( e.to_s, "m135 0,0" )
assert_equal( e2.to_s, "m135 0,0" )
assert_equal( f.to_s, "m135 17,5" )
assert_equal( RBA::DTrans::new( RBA::Trans::M135, RBA::DPoint::new( 1.2, 0.25 )).to_itype(0.001).to_s, "m135 1200,250" )
assert_equal( RBA::Trans::new( RBA::Trans::M135, RBA::Point::new( 1200, 250 )).to_dtype(0.001).to_s, "m135 1.2,0.25" )
assert_equal( RBA::DTrans::from_s(f.to_s).to_s, f.to_s )
assert_equal( b.trans( RBA::DPoint::new( 1, 0 )).to_s, "17,4" )