From 44d838d3597ebe0e2ad71c1609d64089ecf79274 Mon Sep 17 00:00:00 2001 From: nhatdongdang <144138246+nhatdongdang@users.noreply.github.com> Date: Mon, 9 Sep 2024 23:25:01 +1000 Subject: [PATCH] dfs --- .vscode/c_cpp_properties.json | 18 +++++++++ .vscode/settings.json | 56 ++++++++++++++++++++++++++ Testing/Temporary/LastTest.log | 40 ++++++++++++++++++ Testing/Temporary/LastTestsFailed.log | 1 + example/pyramid.cpp | 4 +- pyramid | Bin 0 -> 51624 bytes test/link_test | Bin 0 -> 39576 bytes test/link_test.cpp | 7 ---- test/test_link.cpp | 3 -- 9 files changed, 117 insertions(+), 12 deletions(-) create mode 100644 .vscode/c_cpp_properties.json create mode 100644 .vscode/settings.json create mode 100644 Testing/Temporary/LastTest.log create mode 100644 Testing/Temporary/LastTestsFailed.log create mode 100755 pyramid create mode 100755 test/link_test delete mode 100644 test/link_test.cpp delete mode 100644 test/test_link.cpp diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 00000000..0890bf9f --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,18 @@ +{ + "configurations": [ + { + "name": "Mac", + "includePath": [ + "${default}" + ], + "defines": [], + "macFrameworkPath": [ + "/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks" + ], + "compilerPath": "/opt/homebrew/opt/llvm/bin/clang", + "cStandard": "c17", + "intelliSenseMode": "macos-clang-arm64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..1f1d48fb --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,56 @@ +{ + "files.associations": { + "__split_buffer": "cpp", + "__tree": "cpp", + "deque": "cpp", + "algorithm": "cpp", + "functional": "cpp", + "locale": "cpp", + "string": "cpp", + "vector": "cpp", + "__bit_reference": "cpp", + "__config": "cpp", + "__debug": "cpp", + "__errc": "cpp", + "__locale": "cpp", + "__mutex_base": "cpp", + "__threading_support": "cpp", + "__verbose_abort": "cpp", + "array": "cpp", + "atomic": "cpp", + "bitset": "cpp", + "cctype": "cpp", + "charconv": "cpp", + "clocale": "cpp", + "cmath": "cpp", + "cstdarg": "cpp", + "cstddef": "cpp", + "cstdint": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "cstring": "cpp", + "ctime": "cpp", + "cwchar": "cpp", + "exception": "cpp", + "initializer_list": "cpp", + "ios": "cpp", + "iosfwd": "cpp", + "limits": "cpp", + "mutex": "cpp", + "new": "cpp", + "optional": "cpp", + "ostream": "cpp", + "queue": "cpp", + "stack": "cpp", + "stdexcept": "cpp", + "streambuf": "cpp", + "string_view": "cpp", + "system_error": "cpp", + "tuple": "cpp", + "typeinfo": "cpp", + "variant": "cpp", + "print": "cpp", + "iterator": "cpp", + "iostream": "cpp" + } +} \ No newline at end of file diff --git a/Testing/Temporary/LastTest.log b/Testing/Temporary/LastTest.log new file mode 100644 index 00000000..3fa8a1cf --- /dev/null +++ b/Testing/Temporary/LastTest.log @@ -0,0 +1,40 @@ +Start testing: Sep 09 16:16 AEST +---------------------------------------------------------- +Unable to find executable: /Users/nhatdongdang/Documents/Code/mcpp/test/local_tests +1/2 Testing: local +1/2 Test: local +Command: "" +Directory: /Users/nhatdongdang/Documents/Code/mcpp +"local" start time: +Output: +---------------------------------------------------------- + +Test time = 0.00 sec +---------------------------------------------------------- +Test Passed. +"local" end time: Sep 09 16:16 AEST +"local" time elapsed: 00:00:00 +---------------------------------------------------------- + +2/2 Testing: full +2/2 Test: full +Command: "/Users/nhatdongdang/Documents/Code/mcpp/test/test_suite" +Directory: /Users/nhatdongdang/Documents/Code/mcpp +"full" start time: Sep 09 16:16 AEST +Output: +---------------------------------------------------------- +[doctest] doctest version is "2.4.9" +[doctest] run with "--help" for options +=============================================================================== +[doctest] test cases: 8 | 8 passed | 0 failed | 0 skipped +[doctest] assertions: 92 | 92 passed | 0 failed | +[doctest] Status: SUCCESS! + +Test time = 1.73 sec +---------------------------------------------------------- +Test Passed. +"full" end time: Sep 09 16:16 AEST +"full" time elapsed: 00:00:01 +---------------------------------------------------------- + +End testing: Sep 09 16:16 AEST diff --git a/Testing/Temporary/LastTestsFailed.log b/Testing/Temporary/LastTestsFailed.log new file mode 100644 index 00000000..a054dcba --- /dev/null +++ b/Testing/Temporary/LastTestsFailed.log @@ -0,0 +1 @@ +1:local diff --git a/example/pyramid.cpp b/example/pyramid.cpp index ec6dff47..0e58f5a0 100644 --- a/example/pyramid.cpp +++ b/example/pyramid.cpp @@ -30,10 +30,10 @@ int main() { mc.getHeights(ORIGIN, ORIGIN + mcpp::Coordinate(pyramid_base_len, 0, pyramid_base_len)); - // Use minimum height of the area as the lowest point on the pyramid + // Use minimum hight of the area as the lowest point on the pyramid int min_height = *std::min_element(heights.begin(), heights.end()); - // Build rings, diminishing up to pyramid height + // Build ring, diminishing up to pyramid height mcpp::Coordinate base_pt = heights.base_pt(); base_pt.y = min_height; int side_len = pyramid_base_len; diff --git a/pyramid b/pyramid new file mode 100755 index 0000000000000000000000000000000000000000..d79c700257aeba06186546204c35d5cd9a725e8a GIT binary patch literal 51624 zcmeI5ZERe{6^75Rid#0)wHQZgdi?~QY0vihyWo}oIpjOL2X4qY>L^w=ia;a zdJ{-1B>Lx!a(3pNnR#dCnVIWfqr86Nldp=1G(vL07QlvP5Z#$v${{)n)&Ns#W9?e+ zCT~kKN2e#N^YqY39_#dD0Hu81HsADWtG{P@j2yoJVYZo0wNj?hZ#oXLe7&J7?Zs5- zb{qD2U6aX8$;mPbN+ry`j>KdrUvKPcTd&_~!G5k@p`!_S1+rR&6Nry%y=l$jH`-dsWA}GF!j+;d zQ;zYxj>2pmjyNfqH!t{B^4M8+UfDG(74(~ayN-XqPA_}j`1EJ{PW759@qUKG(MUFu zuUClv%w$ov0dnW6SrO|l=hRJoKh`%kt@GA5+VqLW^41BT)1Fy&&N{hTml7qdGc-oj zjs>iA{Pq_tDQitUrwb1deGmB;FJj-(ZVt*DVVs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git a/test/link_test b/test/link_test new file mode 100755 index 0000000000000000000000000000000000000000..86b72cc92afb2ccb44c8f7e98e4c340b506ea6f8 GIT binary patch literal 39576 zcmeHQe{fXCecyL?LMIR)gKAR{NZ8boZ54F-tw78P>CDdoA;~S155Tg6B{Xu z{Wiib1XXQr*y;PMujK&cS|8rnnw5b_PANK2)i&RuHfu3&@3rPJfuRbcutXHAs;>3v z0wA)>yY4XtGqKF5Lzu>ueq1b(P9veJalN-ap3bt%JNFqw-dRzDuvwm4$ODJ`QPs{s zK-KyJT92;k{&u^(@PmfDW1>D`vpkWVj#M=ejl|~%Y?qf5^4y{Y;YH-d^;js4>7DT^`#mj4Nd%z;+pC`D7+{it0t6s{Dwc>oyM#LXInOTa$FXO1&gjs|4TR8CL12sB=_ zXR8nvdP>p$?kt5XkXM30cDtoF9@`QQwQmU?4F`egS%*M+%sqU$>%YEQ-u~K~|Fk8i z<0nTdkXM3Wj0sX)D|ni8VfpJ__alP3>8BLqBRRAV%@6fkhd^b9J&;62=n@V1!(1b1 z)g9>R+3eX2-9qh#zBK-HySdZY8dB{r2Gj~X@IbnOy&p%g0o#eSe(TY=u61wTk?I5D z*}Vufj$zCL>3N^PG%xh5N1*b_ml!)|kU`n*?whowvi3GS)wJmjE%i@zW5wEIKwu1XC|F&27jIT%tn`Y=HDG` z27}ygH%@FF#9yKwnq1}`o9%BHh0MWmr~1L%d6MlIodq5qD4w2L z#%4wa)ahg{n@KM7&LkllZD#OSsE4K?>xz@TI+^R8aRJZv?-)gUL(YH$a`K>~gUdPT zES`R4V8irD$QnMyF8rgRS0SaJB0YApG3Zs8-02;2=d&70Q{BmXl)-$34UIUVL$RSt zp5mRk@0mxYnUZ&670M#uXMVI2+<>R4V$8>0U%zO>>p*@p@Q*Pj zvpv%I$R4~X6LwfgHfOf6OVp;3U7)&2)O9P~dT_7`d6~8YyEzHFdBwS5`qaSs>C+hh zH-1)BNAu)X*iUJWM@(}(0-JpjV;C9uTxz~QB#wun@0-N`r_d+nW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{N0?B(Qv_wPOBJ$&NciXYehYi-WQ{Rh8u`TjF+AN^(hV)Add{BY;N7yjU{ zs}BB+=g!#i(LL`RII{Kdch^7k#`bsL$c_DE!?OGSa<0CYK(~SKuri!t< literal 0 HcmV?d00001 diff --git a/test/link_test.cpp b/test/link_test.cpp deleted file mode 100644 index a3b12e52..00000000 --- a/test/link_test.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include - -int main() { - std::cout << mcpp::Blocks::AIR << "\n"; - std::cout << "oks"; - return EXIT_SUCCESS; -} diff --git a/test/test_link.cpp b/test/test_link.cpp deleted file mode 100644 index 8eb7dd95..00000000 --- a/test/test_link.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#include - -int main() {} \ No newline at end of file