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 00000000..d79c7002 Binary files /dev/null and b/pyramid differ diff --git a/test/link_test b/test/link_test new file mode 100755 index 00000000..86b72cc9 Binary files /dev/null and b/test/link_test differ 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