(t *testing.T)
| 776 | } |
| 777 | |
| 778 | func TestPrinterPrintAssignShiftRight(t *testing.T) { |
| 779 | o := bytes.NewBufferString("") |
| 780 | |
| 781 | p := printer.NewPrinter(o) |
| 782 | p.Print(&assign.ShiftRight{ |
| 783 | Variable: &expr.Variable{ |
| 784 | VarName: &node.Identifier{Value: "a"}, |
| 785 | }, |
| 786 | Expression: &expr.Variable{ |
| 787 | VarName: &node.Identifier{Value: "b"}, |
| 788 | }, |
| 789 | }) |
| 790 | |
| 791 | expected := `$a>>=$b` |
| 792 | actual := o.String() |
| 793 | |
| 794 | if expected != actual { |
| 795 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 796 | } |
| 797 | } |
| 798 | |
| 799 | // binary |
| 800 |
nothing calls this directly
no test coverage detected
searching dependent graphs…