| Age | Commit message (Collapse) | Author |
|
Update the Go version directive to match the local runtime (go1.26.3).
Also includes go mod tidy cleanup and unrelated test improvements.
|
|
Fix formatting in 12 files to match gofmt standards.
No logical changes.
|
|
Task fd: End-to-end integration tests for metric operations:
- Unit conversion (Mbps→Gbps, hr→min, km→mi, Cool→GB)
- Metric commands (show, list, compatible, binary/decimal set)
- Custom metric define/list
- Cross-category multiply (Mbps*hr→bits)
- Metric-aware addition and hyper operators
- Error cases (incompatible categories, unknown metric, etc.)
|
|
- Add PowInt(int) method to Number interface
- Implement binary exponentiation for Float and Rat types
- Add FastPower operator to handle ** operator
- Register ** operator in NewOperatorRegistry
- Add unit tests for PowInt (basic, large, negative exponents)
- Add integration tests for ** operator (CLI and stdin)
- Update README.md with ** operator documentation
|
|
Integration tests that use the gt tool directly via exec.Command
have been moved from cmd/gt/cli_test.go to integrationtests/cli_test.go.
Unit tests in cmd/gt/main_test.go remain in place as they test
internal functions (runCommand) rather than the binary.
Package declaration changed from 'main' to 'integrationtests'.
|