about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-02-16 19:57:24 +0100
committerEmile <hanemile@protonmail.com>2019-02-16 19:57:24 +0100
commit14a7ec37898c56c2aeb0b099cadd6e0b04dd1b97 (patch)
treedb5afd8869e6020bc5934e8950eee271eb3713be
parent0c52ba8576f6b67adbd5128e51c7effc067be7c6 (diff)
inserting two stars very close to each other for testing the trickle-down effect (multiple concurrent subdivisions)
-rw-r--r--db_actions_test.go36
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) {