(t *testing.T)
| 841 | } |
| 842 | |
| 843 | func TestPrinterPrintBinaryBitwiseXor(t *testing.T) { |
| 844 | o := bytes.NewBufferString("") |
| 845 | |
| 846 | p := printer.NewPrinter(o) |
| 847 | p.Print(&binary.BitwiseXor{ |
| 848 | Left: &expr.Variable{ |
| 849 | VarName: &node.Identifier{Value: "a"}, |
| 850 | }, |
| 851 | Right: &expr.Variable{ |
| 852 | VarName: &node.Identifier{Value: "b"}, |
| 853 | }, |
| 854 | }) |
| 855 | |
| 856 | expected := `$a^$b` |
| 857 | actual := o.String() |
| 858 | |
| 859 | if expected != actual { |
| 860 | t.Errorf("\nexpected: %s\ngot: %s\n", expected, actual) |
| 861 | } |
| 862 | } |
| 863 | |
| 864 | func TestPrinterPrintBinaryBooleanAnd(t *testing.T) { |
| 865 | o := bytes.NewBufferString("") |
nothing calls this directly
no test coverage detected
searching dependent graphs…