-
-
Save haruki7049/80ba608d17364a2b6a064e2908805fa7 to your computer and use it in GitHub Desktop.
The kakei's log on macOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| haruki@enmac:~/program-dir/kakei/ > cargo test --workspace | |
| Compiling kakei v0.1.0 (/Users/haruki/program-dir/kakei) | |
| Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s | |
| Running unittests src/lib.rs (target/debug/deps/kakei-95be839b4ae9ae84) | |
| running 0 tests | |
| test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s | |
| Running unittests src/main.rs (target/debug/deps/kakei-2ee18922db26a0c1) | |
| running 0 tests | |
| test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s | |
| Running tests/cli_integration_tests.rs (target/debug/deps/cli_integration_tests-f8bd0ce82f90b33c) | |
| running 19 tests | |
| test test_cli_version ... ok | |
| test test_cli_help ... ok | |
| test test_add_command_with_memo ... ok | |
| test test_init_command_success ... FAILED | |
| test test_init_command_idempotent ... ok | |
| test test_add_command_with_positive_amount ... ok | |
| test test_list_command_empty ... FAILED | |
| test test_transform_command_empty_table ... FAILED | |
| test test_add_command_invalid_date_format ... ok | |
| test test_list_command_shows_formatted_table ... ok | |
| test test_list_command_with_transactions ... ok | |
| test test_transform_command_table ... ok | |
| test test_add_command_success ... ok | |
| test test_add_command_with_custom_currency ... ok | |
| test test_transform_command_group_by ... ok | |
| test test_add_command_missing_required_args ... ok | |
| test test_transform_with_cdr_operation ... FAILED | |
| test test_transform_command_invalid_program ... ok | |
| test test_transform_with_car_operation ... FAILED | |
| failures: | |
| ---- test_init_command_success stdout ---- | |
| thread 'test_init_command_success' (820366) panicked at tests/cli_integration_tests.rs:69:5: | |
| Database file should exist after init | |
| note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace | |
| ---- test_list_command_empty stdout ---- | |
| thread 'test_list_command_empty' (820408) panicked at /nix/store/l0vkdraddnmj3b9drdc3a4mznh4lmi7g-rust-default-1.91.1/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5: | |
| Unexpected stdout, failed var.contains(No transactions found) | |
| ├── var: ╭────────────┬────────┬───────────┬─────────┬────────────────╮ | |
| │ │ Date │ Amount │ Category │ Account │ Memo │ | |
| │ ├────────────┼────────┼───────────┼─────────┼────────────────┤ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ │ 2025-01-02 │ ¥-2000 │ Transport │ Bank │ │ | |
| │ ╰────────────┴────────┴───────────┴─────────┴────────────────╯ | |
| └── var as str: ╭────────────┬────────┬───────────┬─────────┬────────────────╮ | |
| │ Date │ Amount │ Category │ Account │ Memo │ | |
| ├────────────┼────────┼───────────┼─────────┼────────────────┤ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-02 │ ¥-2000 │ Transport │ Bank │ │ | |
| ╰────────────┴────────┴───────────┴─────────┴────────────────╯ | |
| command=`XDG_CONFIG_HOME="/var/folders/_y/qhb152zx1c92rzn8d50c96hr0000gn/T/.tmpTcrn5y/config" XDG_DATA_HOME="/var/folders/_y/qhb152zx1c92rzn8d50c96hr0000gn/T/.tmpTcrn5y/data" "/Users/haruki/program-dir/kakei/target/debug/kakei" "list"` | |
| code=0 | |
| stdout=``` | |
| ╭────────────┬────────┬───────────┬─────────┬────────────────╮ | |
| │ Date │ Amount │ Category │ Account │ Memo │ | |
| ├────────────┼────────┼───────────┼─────────┼────────────────┤ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-02 │ ¥-2000 │ Transport │ Bank │ │ | |
| ╰────────────┴────────┴───────────┴─────────┴────────────────╯ | |
| ``` | |
| stderr="" | |
| ---- test_transform_command_empty_table stdout ---- | |
| thread 'test_transform_command_empty_table' (820502) panicked at /nix/store/l0vkdraddnmj3b9drdc3a4mznh4lmi7g-rust-default-1.91.1/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5: | |
| Unexpected stdout, failed var.contains(No transactions found) | |
| ├── var: ╭────────────┬────────┬───────────┬─────────┬────────────────╮ | |
| │ │ Date │ Amount │ Category │ Account │ Memo │ | |
| │ ├────────────┼────────┼───────────┼─────────┼────────────────┤ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ ╰────────────┴────────┴───────────┴─────────┴────────────────╯ | |
| └── var as str: ╭────────────┬────────┬───────────┬─────────┬────────────────╮ | |
| │ Date │ Amount │ Category │ Account │ Memo │ | |
| ├────────────┼────────┼───────────┼─────────┼────────────────┤ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| ╰────────────┴────────┴───────────┴─────────┴────────────────╯ | |
| command=`XDG_CONFIG_HOME="/var/folders/_y/qhb152zx1c92rzn8d50c96hr0000gn/T/.tmpS3uWTZ/config" XDG_DATA_HOME="/var/folders/_y/qhb152zx1c92rzn8d50c96hr0000gn/T/.tmpS3uWTZ/data" "/Users/haruki/program-dir/kakei/target/debug/kakei" "transform" "--program" "table"` | |
| code=0 | |
| stdout=``` | |
| ╭────────────┬────────┬───────────┬─────────┬────────────────╮ | |
| │ Date │ Amount │ Category │ Account │ Memo │ | |
| ├────────────┼────────┼───────────┼─────────┼────────────────┤ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| ╰────────────┴────────┴───────────┴─────────┴────────────────╯ | |
| ``` | |
| stderr="" | |
| ---- test_transform_with_cdr_operation stdout ---- | |
| thread 'test_transform_with_cdr_operation' (820700) panicked at /nix/store/l0vkdraddnmj3b9drdc3a4mznh4lmi7g-rust-default-1.91.1/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5: | |
| Unexpected stdout, failed var.contains(2025-01-01) | |
| ├── var: ╭────────────┬────────┬───────────┬─────────┬────────────────╮ | |
| │ │ Date │ Amount │ Category │ Account │ Memo │ | |
| │ ├────────────┼────────┼───────────┼─────────┼────────────────┤ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ ╰────────────┴────────┴───────────┴─────────┴────────────────╯ | |
| └── var as str: ╭────────────┬────────┬───────────┬─────────┬────────────────╮ | |
| │ Date │ Amount │ Category │ Account │ Memo │ | |
| ├────────────┼────────┼───────────┼─────────┼────────────────┤ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| ╰────────────┴────────┴───────────┴─────────┴────────────────╯ | |
| command=`XDG_CONFIG_HOME="/var/folders/_y/qhb152zx1c92rzn8d50c96hr0000gn/T/.tmpk6Kx3R/config" XDG_DATA_HOME="/var/folders/_y/qhb152zx1c92rzn8d50c96hr0000gn/T/.tmpk6Kx3R/data" "/Users/haruki/program-dir/kakei/target/debug/kakei" "transform" "--program" "(cdr table)"` | |
| code=0 | |
| stdout=``` | |
| ╭────────────┬────────┬───────────┬─────────┬────────────────╮ | |
| │ Date │ Amount │ Category │ Account │ Memo │ | |
| ├────────────┼────────┼───────────┼─────────┼────────────────┤ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ 2025-01-15 │ ¥50000 │ Salary │ Bank │ Monthly salary │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| │ 2025-01-03 │ ¥-2000 │ Transport │ Cash │ │ | |
| ╰────────────┴────────┴───────────┴─────────┴────────────────╯ | |
| ``` | |
| stderr="" | |
| ---- test_transform_with_car_operation stdout ---- | |
| thread 'test_transform_with_car_operation' (820663) panicked at /nix/store/l0vkdraddnmj3b9drdc3a4mznh4lmi7g-rust-default-1.91.1/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5: | |
| Unexpected stdout, failed var.contains(Transport) | |
| ├── var: ╭────────────┬────────┬──────────┬─────────┬───────────╮ | |
| │ │ Date │ Amount │ Category │ Account │ Memo │ | |
| │ ├────────────┼────────┼──────────┼─────────┼───────────┤ | |
| │ │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| │ ╰────────────┴────────┴──────────┴─────────┴───────────╯ | |
| └── var as str: ╭────────────┬────────┬──────────┬─────────┬───────────╮ | |
| │ Date │ Amount │ Category │ Account │ Memo │ | |
| ├────────────┼────────┼──────────┼─────────┼───────────┤ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| ╰────────────┴────────┴──────────┴─────────┴───────────╯ | |
| command=`XDG_CONFIG_HOME="/var/folders/_y/qhb152zx1c92rzn8d50c96hr0000gn/T/.tmpeoXN0i/config" XDG_DATA_HOME="/var/folders/_y/qhb152zx1c92rzn8d50c96hr0000gn/T/.tmpeoXN0i/data" "/Users/haruki/program-dir/kakei/target/debug/kakei" "transform" "--program" "(cons (car table) ())"` | |
| code=0 | |
| stdout=``` | |
| ╭────────────┬────────┬──────────┬─────────┬───────────╮ | |
| │ Date │ Amount │ Category │ Account │ Memo │ | |
| ├────────────┼────────┼──────────┼─────────┼───────────┤ | |
| │ 2025-01-15 │ ¥-1000 │ Food │ Cash │ Test memo │ | |
| ╰────────────┴────────┴──────────┴─────────┴───────────╯ | |
| ``` | |
| stderr="" | |
| failures: | |
| test_init_command_success | |
| test_list_command_empty | |
| test_transform_command_empty_table | |
| test_transform_with_car_operation | |
| test_transform_with_cdr_operation | |
| test result: FAILED. 14 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.46s | |
| error: test failed, to rerun pass `-p kakei --test cli_integration_tests` | |
| haruki@enmac:~/program-dir/kakei/ > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment