Remove test files for the 2022 setup
This commit is contained in:
parent
22afa80e1b
commit
e11d9e24cd
|
@ -1,200 +0,0 @@
|
|||
1914
|
||||
1931
|
||||
1892
|
||||
1584
|
||||
1546
|
||||
1988
|
||||
1494
|
||||
1709
|
||||
1624
|
||||
1755
|
||||
1849
|
||||
1430
|
||||
1890
|
||||
1675
|
||||
1604
|
||||
1580
|
||||
1500
|
||||
1277
|
||||
1729
|
||||
1456
|
||||
2002
|
||||
1075
|
||||
1512
|
||||
895
|
||||
1843
|
||||
1921
|
||||
1904
|
||||
1989
|
||||
1407
|
||||
1552
|
||||
1714
|
||||
757
|
||||
1733
|
||||
1459
|
||||
1777
|
||||
1440
|
||||
1649
|
||||
1409
|
||||
1662
|
||||
1968
|
||||
1775
|
||||
1998
|
||||
1754
|
||||
1938
|
||||
1964
|
||||
1415
|
||||
1990
|
||||
1997
|
||||
1870
|
||||
1664
|
||||
1145
|
||||
1782
|
||||
1820
|
||||
1625
|
||||
1599
|
||||
1530
|
||||
1759
|
||||
1575
|
||||
1614
|
||||
1869
|
||||
1620
|
||||
1818
|
||||
1295
|
||||
1667
|
||||
1361
|
||||
1520
|
||||
1555
|
||||
1485
|
||||
1502
|
||||
1983
|
||||
1104
|
||||
1973
|
||||
1433
|
||||
1906
|
||||
1583
|
||||
1562
|
||||
1493
|
||||
1945
|
||||
1528
|
||||
1600
|
||||
1814
|
||||
1712
|
||||
1848
|
||||
1454
|
||||
1801
|
||||
1710
|
||||
1824
|
||||
1426
|
||||
1977
|
||||
1511
|
||||
1644
|
||||
1302
|
||||
1428
|
||||
1513
|
||||
1261
|
||||
1761
|
||||
1680
|
||||
1731
|
||||
1724
|
||||
1970
|
||||
907
|
||||
600
|
||||
1613
|
||||
1091
|
||||
1571
|
||||
1418
|
||||
1806
|
||||
1542
|
||||
1909
|
||||
1445
|
||||
1344
|
||||
1937
|
||||
1450
|
||||
1865
|
||||
1561
|
||||
1962
|
||||
1637
|
||||
1803
|
||||
1889
|
||||
365
|
||||
1810
|
||||
1791
|
||||
1591
|
||||
1532
|
||||
1863
|
||||
1658
|
||||
1808
|
||||
1816
|
||||
1837
|
||||
1764
|
||||
1443
|
||||
1805
|
||||
1616
|
||||
1403
|
||||
1656
|
||||
1661
|
||||
1734
|
||||
1930
|
||||
1120
|
||||
1920
|
||||
1227
|
||||
1618
|
||||
1640
|
||||
1586
|
||||
1982
|
||||
1534
|
||||
1278
|
||||
1269
|
||||
1572
|
||||
1654
|
||||
1472
|
||||
1974
|
||||
1748
|
||||
1425
|
||||
1553
|
||||
1708
|
||||
1394
|
||||
1417
|
||||
1746
|
||||
1745
|
||||
1834
|
||||
1787
|
||||
1298
|
||||
1786
|
||||
1966
|
||||
1768
|
||||
1932
|
||||
1523
|
||||
1356
|
||||
1547
|
||||
1634
|
||||
1951
|
||||
1922
|
||||
222
|
||||
1461
|
||||
1628
|
||||
1888
|
||||
1639
|
||||
473
|
||||
1568
|
||||
1783
|
||||
572
|
||||
1522
|
||||
1934
|
||||
1629
|
||||
1283
|
||||
1550
|
||||
1859
|
||||
2007
|
||||
1996
|
||||
1822
|
||||
996
|
||||
1911
|
||||
1689
|
||||
1537
|
||||
1793
|
||||
1762
|
||||
1677
|
||||
1266
|
||||
1715
|
|
@ -7,9 +7,21 @@ echo '#![feature(test)]
|
|||
extern crate test;
|
||||
use aoc2022::{boilerplate, common::*};
|
||||
|
||||
const DAY: usize = 0;
|
||||
const DAY: usize = '$today';
|
||||
type Parsed = Vec<usize>;
|
||||
|
||||
fn parse_input(raw: &str) -> Parsed {
|
||||
parse_nums(raw)
|
||||
}
|
||||
|
||||
fn part1(parsed: &Parsed) -> usize {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn part2(parsed: &Parsed) -> usize {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
boilerplate! {
|
||||
TEST_INPUT == "",
|
||||
tests: {
|
||||
|
@ -18,17 +30,5 @@ boilerplate! {
|
|||
},
|
||||
bench1 == 0,
|
||||
bench2 == 0,
|
||||
parse: Vec::len => 0,
|
||||
}
|
||||
|
||||
fn parse_input(raw: &str) -> Parsed {
|
||||
parse_nums()
|
||||
}
|
||||
|
||||
fn part1(parsed: &Parsed) -> usize {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn part2(parsed: &Parsed) -> usize {
|
||||
unimplemented!()
|
||||
bench_parse: Vec::len => 0,
|
||||
}' > src/bin/day$today.rs
|
||||
|
|
|
@ -1,56 +0,0 @@
|
|||
#![feature(test)]
|
||||
extern crate test;
|
||||
use aoc2022::{boilerplate, common::*};
|
||||
|
||||
const DAY: usize = 0;
|
||||
type Parsed = Vec<usize>;
|
||||
|
||||
boilerplate! {
|
||||
TEST_INPUT == "1721
|
||||
979
|
||||
366
|
||||
299
|
||||
675
|
||||
1456",
|
||||
tests: {
|
||||
part1: {
|
||||
TEST_INPUT => 514579,
|
||||
"1234\n786" => 969924,
|
||||
},
|
||||
part2: { TEST_INPUT => 241861950 },
|
||||
},
|
||||
bench1 == 731731,
|
||||
bench2 == 116115990,
|
||||
bench_parse: Vec::len => 200,
|
||||
}
|
||||
|
||||
/// Naive solution for a previous day 1,
|
||||
/// just to test my test setup for this year.
|
||||
|
||||
fn parse_input(raw: &str) -> Parsed {
|
||||
parse_nums(raw)
|
||||
}
|
||||
|
||||
fn part1(parsed: &Parsed) -> usize {
|
||||
for x in parsed {
|
||||
for y in parsed {
|
||||
if x + y == 2020 {
|
||||
return x * y;
|
||||
}
|
||||
}
|
||||
}
|
||||
unreachable!()
|
||||
}
|
||||
|
||||
fn part2(parsed: &Parsed) -> usize {
|
||||
for x in parsed {
|
||||
for y in parsed {
|
||||
for z in parsed {
|
||||
if x + y + z == 2020 {
|
||||
return x * y * z;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
unreachable!()
|
||||
}
|
Loading…
Reference in New Issue
Block a user