(t *testing.T)
| 477 | } |
| 478 | |
| 479 | func TestTextFormatShapeIndexDebugStringRoundTrip(t *testing.T) { |
| 480 | // TODO(rsned): Incorporate the roundtripPrecision parameter to the tests. |
| 481 | tests := []string{ |
| 482 | "# #", |
| 483 | "0:0 # #", |
| 484 | "0:0 | 1:0 # #", |
| 485 | "0:0 | 1:0 # #", |
| 486 | "# 0:0, 0:0 #", |
| 487 | "# 0:0, 0:0 | 1:0, 2:0 #", |
| 488 | "# # 0:0", |
| 489 | "# # 0:0, 0:1", |
| 490 | "# # 0:0, 0:1, 1:0", |
| 491 | "# # 0:0, 0:1, 1:0, 2:2", |
| 492 | "# # full", |
| 493 | } |
| 494 | |
| 495 | for _, want := range tests { |
| 496 | if got := shapeIndexDebugString(makeShapeIndex(want), false); got != want { |
| 497 | t.Errorf("ShapeIndex failed roundtrip to string. got %q, want %q", got, want) |
| 498 | } |
| 499 | } |
| 500 | } |
| 501 | |
| 502 | // TODO(roberts): Remaining tests |
| 503 | // to debug string tests for |
nothing calls this directly
no test coverage detected
searching dependent graphs…