@@ -8,9 +8,7 @@ const nanobots = require('./nanobots');
8
8
const BoundingBox = nanobots . BoundingBox ;
9
9
const Point = nanobots . Point ;
10
10
11
- const solution = require ( './solution' ) ;
12
-
13
- describe ( 'Day 23: Experimental Emergency Teleportation' , ( ) => {
11
+ describe . only ( 'Day 23: Experimental Emergency Teleportation' , ( ) => {
14
12
15
13
describe ( 'Part One' , ( ) => {
16
14
it ( 'should calculate range of nanobots' , ( ) => {
@@ -31,16 +29,6 @@ describe('Day 23: Experimental Emergency Teleportation', () => {
31
29
const input = fs . readFileSync ( 'day-23-experimental-emergency-teleportation/input.txt' ) . toString ( ) ;
32
30
expect ( nanobots . calculateNanobotsInRange ( input ) ) . to . equal ( 619 ) ;
33
31
} ) ;
34
-
35
- it ( 'Input file should return' , ( ) => {
36
- const input = fs . readFileSync ( 'day-23-experimental-emergency-teleportation/input.txt' ) . toString ( ) ;
37
- solution . run ( input ) ;
38
- } ) ;
39
-
40
- it ( 'Input file should return' , ( ) => {
41
- const input = fs . readFileSync ( 'day-23-experimental-emergency-teleportation/input.txt' ) . toString ( ) ;
42
- expect ( nanobots . getNanobotsForPoint ( input , 20407349 , 13636438 , 35377809 ) ) . to . equal ( 619 ) ;
43
- } ) ;
44
32
} ) ;
45
33
46
34
describe ( 'Part Two' , ( ) => {
@@ -99,15 +87,15 @@ describe('Day 23: Experimental Emergency Teleportation', () => {
99
87
pos=<14,14,14>, r=6
100
88
pos=<50,50,50>, r=200
101
89
pos=<10,10,10>, r=5` ;
102
- expect ( nanobots . calculateBestCoordinates ( coords ) ) . to . equal ( 36 ) ;
90
+ expect ( nanobots . redditAttempt ( coords ) ) . to . equal ( 36 ) ;
103
91
} ) ;
104
92
105
93
it ( 'Input file should return' , ( ) => {
106
94
const input = fs . readFileSync ( 'day-23-experimental-emergency-teleportation/input.txt' ) . toString ( ) ;
107
95
expect ( nanobots . redditAttempt ( input ) ) . to . equal ( 71631000 ) ; //too low
108
96
} ) ;
109
97
110
- it ( 'Input file should return' , ( ) => {
98
+ it . skip ( 'Input file should return' , ( ) => {
111
99
const input = fs . readFileSync ( 'day-23-experimental-emergency-teleportation/input.txt' ) . toString ( ) ;
112
100
expect ( nanobots . calculateBestCoordinatesWithAnswer ( input ) ) . to . equal ( 71631000 ) ; //too low
113
101
} ) . timeout ( 1000000 ) ;
0 commit comments