Commit a1b130df authored by Tomas MARTINEAU's avatar Tomas MARTINEAU
Browse files

Update particles_test.go

parent ccc401ef
package particles
import("project-particles/config"
"testing"
"fmt")
"testing")
// Cette fonction teste si NewSystem génère 0 particule.
......@@ -28,7 +27,6 @@ func TestNew10(t*testing.T){
if len(S.Content) != 10{
t.Fail()
fmt.Println(S.Content)
}
}
......@@ -138,7 +136,6 @@ func TestVitesse(t*testing.T){
S.Update()
if v1 == S.Content[0].PositionX || v2 == S.Content[0].PositionY{
t.Fail()
fmt.Println(v1,S.Content[0].PositionX)
}
}
}
......@@ -159,7 +156,6 @@ func TestAleatoirePosition_Ecran(t*testing.T){
if S.Content[0].PositionX < 0 || S.Content[0].PositionX > float64(config.General.WindowSizeX)||S.Content[0].PositionY < 0 || S.Content[0].PositionY > float64(config.General.WindowSizeY){
t.Fail()
fmt.Println(S.Content[0].PositionX)
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment