Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(830)

Unified Diff: freetype/truetype/hint_test.go

Issue 6352097: code review 6352097: freetype/truetype: odd/even opcodes. (Closed)
Patch Set: diff -r 6d4d289ee00e https://code.google.com/p/freetype-go Created 12 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « freetype/truetype/hint.go ('k') | freetype/truetype/opcodes.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: freetype/truetype/hint_test.go
===================================================================
--- a/freetype/truetype/hint_test.go
+++ b/freetype/truetype/hint_test.go
@@ -188,6 +188,26 @@
"",
},
{
+ "odd/even",
+ // Calculate odd(2+31/64), odd(2+32/64), even(2), even(1).
+ []byte{
+ opPUSHB000, // [159]
+ 159,
+ opODD, // [0]
+ opPUSHB000, // [0, 160]
+ 160,
+ opODD, // [0, 1]
+ opPUSHB000, // [0, 1, 128]
+ 128,
+ opEVEN, // [0, 1, 1]
+ opPUSHB000, // [0, 1, 1, 64]
+ 64,
+ opEVEN, // [0, 1, 1, 0]
+ },
+ []int32{0, 1, 1, 0},
+ "",
+ },
+ {
"if true",
[]byte{
opPUSHB001, // [255, 1]
« no previous file with comments | « freetype/truetype/hint.go ('k') | freetype/truetype/opcodes.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b