diff options
author | Emile <hanemile@protonmail.com> | 2019-02-16 19:57:24 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-02-16 19:57:24 +0100 |
commit | 14a7ec37898c56c2aeb0b099cadd6e0b04dd1b97 (patch) | |
tree | db5afd8869e6020bc5934e8950eee271eb3713be | |
parent | 0c52ba8576f6b67adbd5128e51c7effc067be7c6 (diff) |
inserting two stars very close to each other for testing the trickle-down effect (multiple concurrent subdivisions)
-rw-r--r-- | db_actions_test.go | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/db_actions_test.go b/db_actions_test.go index 07dd2d3..39a5bba 100644 --- a/db_actions_test.go +++ b/db_actions_test.go @@ -232,6 +232,42 @@ func TestInsertStar(t *testing.T) { index: 2, }, }, + { + name: "5.1. Insert (150, 150) in time step 3 (proximity-test 1)", + args: args{ + database: db, + star: structs.Star2D{ + C: structs.Vec2{ + X: 150, + Y: 150, + }, + V: structs.Vec2{ + X: 0, + Y: 0, + }, + M: 1000, + }, + index: 3, + }, + }, + { + name: "5.2. Insert (151, 151) in time step 3 (proximity-test 1)", + args: args{ + database: db, + star: structs.Star2D{ + C: structs.Vec2{ + X: 151, + Y: 151, + }, + V: structs.Vec2{ + X: 0, + Y: 0, + }, + M: 1000, + }, + index: 3, + }, + }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { |