Commit Graph

17 Commits

Author SHA1 Message Date
b8c7b5e68b finish testing
- convert project to a library by moving program logic into lib.rs
- create ./tests to store integration tests
- create ./common to store code we want shared across integration tests
2026-01-19 08:01:27 +00:00
b287268919 testing
- create regular functions with various return types
- create test functions with various return types
- experiment with `cargo test`, `#[should_panic]`, `#[ignore]` and test modules
2026-01-19 07:06:25 +00:00
2e59942555 update error handling example
- replaced `match`s with `?`s where possible
- it should not be considered an improvement tho
- turns out `?` is best used when you are returning `Result<T,E>`s
- we were returning `String`s
- so we had to wrap all successful string returns in `Ok()`s
- which is just clunky
- good learning but its time to move on!
2026-01-17 16:48:48 +00:00
b48bb409d5 error handling example
- finally get an error handling example running the way it should
- we've used the ugly method (a lot of matches and so on)
- and our code is not beautiful per se
- but it works
- next we improve this with `?`s
2026-01-17 15:02:59 +00:00
6b0ff37562 start error handling 2026-01-17 09:01:51 +00:00
25da030d2f finish hash maps 2026-01-14 07:25:19 +00:00
d76140e0c9 hash maps 2026-01-14 07:09:27 +00:00
bd91374d46 strings 2026-01-13 08:32:20 +00:00
8095e5d271 finish vectors 2026-01-13 06:50:55 +00:00
7d1d94fbc5 add readme 2026-01-03 07:48:36 +00:00
08625fe37f vectors 2025-12-24 19:51:23 +00:00
c619956429 slot machine 2025-12-23 09:19:54 +00:00
17f49d642d modules 2025-12-22 11:02:13 +00:00
fb38f07d80 structs and methods 2025-12-21 12:07:41 +00:00
04c6e7e66a functions, loops and control flow 2025-12-20 18:13:04 +00:00
83fc3600b8 getting started 2025-12-19 07:21:37 +00:00
9452f9fb6b add .gitignore 2025-12-19 06:41:19 +00:00