@@ -8,13 +8,6 @@ import (
8
8
"github.com/evanw/esbuild/internal/test"
9
9
)
10
10
11
- func assertEqual (t * testing.T , a interface {}, b interface {}) {
12
- t .Helper ()
13
- if a != b {
14
- t .Fatalf ("%s != %s" , a , b )
15
- }
16
- }
17
-
18
11
func expectPrintedCommon (t * testing.T , name string , contents string , expected string , options Options ) {
19
12
t .Helper ()
20
13
t .Run (name , func (t * testing.T ) {
@@ -30,9 +23,9 @@ func expectPrintedCommon(t *testing.T, name string, contents string, expected st
30
23
text += msg .String (logger.OutputOptions {}, logger.TerminalInfo {})
31
24
}
32
25
}
33
- assertEqual (t , text , "" )
26
+ test . AssertEqualWithDiff (t , text , "" )
34
27
result := Print (tree , options )
35
- assertEqual (t , string (result .CSS ), expected )
28
+ test . AssertEqualWithDiff (t , string (result .CSS ), expected )
36
29
})
37
30
}
38
31
@@ -61,7 +54,7 @@ func expectPrintedString(t *testing.T, stringValue string, expected string) {
61
54
t .Helper ()
62
55
p := printer {}
63
56
p .printQuoted (stringValue )
64
- assertEqual (t , string (p .css ), expected )
57
+ test . AssertEqualWithDiff (t , string (p .css ), expected )
65
58
})
66
59
}
67
60
0 commit comments