From 14a7ec37898c56c2aeb0b099cadd6e0b04dd1b97 Mon Sep 17 00:00:00 2001 From: Emile Date: Sat, 16 Feb 2019 19:57:24 +0100 Subject: inserting two stars very close to each other for testing the trickle-down effect (multiple concurrent subdivisions) --- db_actions_test.go | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) 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) { -- cgit 1.4.1