{"id":20152186,"url":"https://github.com/mfurquimdev/trying-catch","last_synced_at":"2026-05-13T03:04:28.074Z","repository":{"id":151961177,"uuid":"226954043","full_name":"mfurquimdev/trying-catch","owner":"mfurquimdev","description":"Simple project to test the CATCH framework for unit-tests.","archived":false,"fork":false,"pushed_at":"2019-12-11T18:44:38.000Z","size":128,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T01:18:32.146Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfurquimdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-09T19:47:30.000Z","updated_at":"2022-02-18T11:24:52.000Z","dependencies_parsed_at":"2023-06-02T04:45:39.181Z","dependency_job_id":null,"html_url":"https://github.com/mfurquimdev/trying-catch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mfurquimdev/trying-catch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfurquimdev%2Ftrying-catch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfurquimdev%2Ftrying-catch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfurquimdev%2Ftrying-catch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfurquimdev%2Ftrying-catch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfurquimdev","download_url":"https://codeload.github.com/mfurquimdev/trying-catch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfurquimdev%2Ftrying-catch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32965784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"online","status_checked_at":"2026-05-13T02:00:07.132Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T23:09:19.133Z","updated_at":"2026-05-13T03:04:28.038Z","avatar_url":"https://github.com/mfurquimdev.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Using CATCH \n\nSimple project to test the [CATCH](https://github.com/catchorg/Catch2) framework for unit-tests.\n\nThe project implements a keyboard T9 capable of dialing one char only, e.g. type `2` and get an `A`.\nThe enconding is the opposite, the `A` is located at key `2`. So on and so forth.\n\n## Example output\n\n```\n$ ./bin/t9_test\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nt9_test is a Catch v2.11.0 host application.\nRun with -? for options\n\n-------------------------------------------------------------------------------\nEncode incorrect letter --\u003e return -1\n-------------------------------------------------------------------------------\ntest/t9_test.cpp:8\n...............................................................................\n\ntest/t9_test.cpp:11:\nwarning:\n  WARN: At the top of the TEST CASE\n\ntest/t9_test.cpp:15:\nwarning:\n  WARN: Inside a scope\n\ntest/t9_test.cpp:25: FAILED:\nexplicitly with messages:\n  INFO: At the top of the TEST CASE\n  INFO: Test on Encode(\"?\")\n  t9 := [?,-1]\n  I will fail after '?'\n\n===============================================================================\ntest cases: 1 | 1 failed\nassertions: 3 | 2 passed | 1 failed\n```\n\n## Structure of the project\n\n- The `./bin` directory contains the binaries (executables)\n  - `t9_main` is a small application using the `T9` class\n  - `t9_test` is the suite of unit tests executable of the `T9` class\n- The `./src` directory had to be separated as the `catch.hpp` also declares a main function as well as the `t9_main.cpp`\n  - `t9.cpp` implements a simple logic to return the one number based on the letter typed\n- The `./main` directory contains the `t9_main.cpp` which generates the `t9_main` executable\n  - It is used to run a simple instance of the `T9` class\n- The `./test` directory contains the `t9_test.cpp` which generates the `t9_test` executable\n  - It is used to run a series of unit tests of the `T9` class\n- The `./inc` directory contains the `t9.h`, which is the header of `t9.cpp`, and the `catch.hpp`\n  - The `t9.h` defines how the `T9` class is structured (its variables and methods)\n  - The `catch.hpp` is the entire implementation of the CATCH framework\n- The `./obj` directory contains objects from every `.cpp`\n  - `t9_main.o` generated by `t9_main.cpp`\n  - `t9_test.o` generated by `t9_test.cpp`\n  - `t9.o` generated by `t9.cpp`\n\n\n```\nmfurquim/trying-catch\n├── bin/\n│   ├── t9_main\n│   └── t9_test\n├── inc/\n│   ├── catch.hpp\n│   └── t9.h\n├── main/\n│   └── t9_main.cpp\n├── Makefile\n├── obj/\n│   ├── t9_main.o\n│   ├── t9.o\n│   └── t9_test.o\n├── README.md\n├── src/\n│   └── t9.cpp\n└── test/\n    └── t9_test.cpp\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfurquimdev%2Ftrying-catch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfurquimdev%2Ftrying-catch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfurquimdev%2Ftrying-catch/lists"}