Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated formatting.

Forgot to run gofmt before committing 'codegen/expr_test.go'.
  • Loading branch information...
commit d629587af8639314df3eee84b793fcdd6fcb5533 1 parent 76c2c52
scpayson authored December 15, 2011

Showing 1 changed file with 7 additions and 7 deletions. Show diff stats Hide diff stats

  1. 14  codegen/expr_test.go
14  codegen/expr_test.go
@@ -2,20 +2,20 @@ package codegen
2 2
 
3 3
 import "testing"
4 4
 
5  
-func TestExprDB( t * testing.T ) {
  5
+func TestExprDB(t *testing.T) {
6 6
    db := NewExprDB()
7 7
 
8 8
    a, b, c := db.NewLiteral(), db.NewLiteral(), db.NewLiteral()
9 9
 
10  
-   aPbXc := db.NewAdd( a, db.NewMul( b, c ) )
  10
+   aPbXc := db.NewAdd(a, db.NewMul(b, c))
11 11
 
12  
-   bXc := db.NewMul( b, c )
  12
+   bXc := db.NewMul(b, c)
13 13
 
14  
-   if aPbXc != db.NewAdd( a, bXc ) {
15  
-      t.Errorf( "Did not generate same name for 'a + b * c' twice in a row" )
  14
+   if aPbXc != db.NewAdd(a, bXc) {
  15
+      t.Errorf("Did not generate same name for 'a + b * c' twice in a row")
16 16
    }
17 17
 
18  
-   if aPbXc == db.NewAdd( a, db.NewMul( a, b ) ) {
19  
-      t.Errorf( "Generated same name for different expressions" )
  18
+   if aPbXc == db.NewAdd(a, db.NewMul(a, b)) {
  19
+      t.Errorf("Generated same name for different expressions")
20 20
    }
21 21
 }

0 notes on commit d629587

Please sign in to comment.
Something went wrong with that request. Please try again.