File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
repository/Grease-Tests-Core.package/GRPlatformTest.class/instance Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 11tests- encoding
22testGreaseAsByteArray
33 self assert: 1024 greaseAsByteArray equals: #[4 0] .
4+ self assert: (SmallInteger maxVal + 10 ) greaseAsByteArray equals: #[16 0 0 0 0 0 0 9] .
5+ self assert: (SmallInteger minVal - 10 ) greaseAsByteArray equals: #[16 0 0 0 0 0 0 10] .
46 self assert: #[1 2 3] greaseAsByteArray equals: #[1 2 3] .
57 self assert: ' 123' greaseAsByteArray equals: #[49 50 51]
Original file line number Diff line number Diff line change 11tests- encoding
22testGreaseByteAt
33 self assert: (1024 greaseByteAt: 1 ) equals: 0 .
4- self assert: (1024 greaseByteAt: 2 ) equals: 4
4+ self assert: (1024 greaseByteAt: 2 ) equals: 4 .
5+ self assert: ((SmallInteger maxVal + 10 ) greaseByteAt: 1 ) equals: 9 .
6+ self assert: ((SmallInteger maxVal + 10 ) greaseByteAt: 8 ) equals: 16 .
7+ self assert: ((SmallInteger minVal - 10 ) greaseByteAt: 1 ) equals: 10 .
8+ self assert: ((SmallInteger minVal - 10 ) greaseByteAt: 8 ) equals: 16
Original file line number Diff line number Diff line change 11tests- encoding
22testGreaseBytesCount
3- self assert: 1024 greaseBytesCount equals: 2
3+ self assert: 1024 greaseBytesCount equals: 2 .
4+ self assert: (SmallInteger maxVal + 10 ) greaseBytesCount equals: 8 .
5+ self assert: (SmallInteger minVal + 10 ) greaseBytesCount equals: 8
You can’t perform that action at this time.
0 commit comments