{"id":22248947,"url":"https://github.com/purplebooth/kata-anacronym","last_synced_at":"2025-08-02T20:34:06.820Z","repository":{"id":136339305,"uuid":"131903576","full_name":"PurpleBooth/kata-anacronym","owner":"PurpleBooth","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-09T20:54:42.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T11:49:47.434Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PurpleBooth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-05-02T20:40:02.000Z","updated_at":"2018-05-05T07:42:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"47a6666b-a6e1-42b1-87e5-5c0eb52e759a","html_url":"https://github.com/PurpleBooth/kata-anacronym","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PurpleBooth/kata-anacronym","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PurpleBooth%2Fkata-anacronym","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PurpleBooth%2Fkata-anacronym/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PurpleBooth%2Fkata-anacronym/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PurpleBooth%2Fkata-anacronym/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PurpleBooth","download_url":"https://codeload.github.com/PurpleBooth/kata-anacronym/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PurpleBooth%2Fkata-anacronym/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268448362,"owners_count":24252019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"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-12-03T06:20:46.345Z","updated_at":"2025-08-02T20:34:06.804Z","avatar_url":"https://github.com/PurpleBooth.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kata: Acronym Solver\n\n## Challenge\n\nStandard acronym solver.\n\nInput is a dictionary with 1 word per line.\n\n## Test Data\n\n```rust\n\n    #[test]\n    fn it_returns_nothing_for_a_empty_initial_letters_and_dictionary() {\n        let result: Vec\u003cString\u003e = Vec::new();\n        assert_eq!(solve_acronym(\u0026mut \"\".as_bytes(), \"\".to_string()), result);\n    }\n    #[test]\n    fn it_returns_nothing_for_a_empty_initial_letters() {\n        let result: Vec\u003cString\u003e = Vec::new();\n        assert_eq!(solve_acronym(\u0026mut \"testing\".as_bytes(), \"\".to_string()), result);\n    }\n    #[test]\n    fn it_returns_nothing_for_a_empty_dictionary() {\n        let result: Vec\u003cString\u003e = Vec::new();\n        assert_eq!(solve_acronym(\u0026mut \"\".as_bytes(), \"testing\".to_string()), result);\n    }\n    #[test]\n    fn testing_matches_testing() {\n        let mut  result: Vec\u003cString\u003e = Vec::new();\n        result.push(\"testing\".to_string());\n        assert_eq!(solve_acronym(\u0026mut \"testing\".as_bytes(), \"testing\".to_string()), result);\n    }\n    #[test]\n    fn act_matches_cat_act_tac() {\n        let mut  result: Vec\u003cString\u003e = Vec::new();\n        result.push(\"act\".to_string());\n        result.push(\"cat\".to_string());\n        result.push(\"tac\".to_string());\n        assert_eq!(solve_acronym(\u0026mut \"act\\ncat\\ntac\".as_bytes(), \"cat\".to_string()), result);\n    }\n```\n \n# Running\n\nFormat code\n\n```\nrustup run nightly cargo fmt --all --\n```\n\nRun tests\n\n```\n$ rustup run stable cargo test               master ✚ ◼\n      Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs\n       Running target/debug/deps/kata_anacronym-466783b986774df3\n  \n  running 6 tests\n  test tests::it_returns_nothing_for_a_empty_initial_letters_and_dictionary ... ok\n  test tests::it_returns_nothing_for_a_empty_initial_letters ... ok\n  test tests::it_sorts_the_letters_alphabetically ... ok\n  test tests::act_matches_cat_act_tac ... ok\n  test tests::it_returns_nothing_for_a_empty_dictionary ... ok\n  test tests::testing_matches_testing ... ok\n  \n  test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out\n  \n     Doc-tests kata-anacronym\n  \n  running 0 tests\n  \n  test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out\n  \n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurplebooth%2Fkata-anacronym","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurplebooth%2Fkata-anacronym","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurplebooth%2Fkata-anacronym/lists"}