Issue: Lack of Tests for Simulation and Ising Model
Description
The project currently lacks unit and integration tests, making it difficult to ensure correctness and prevent regressions.
Proposed Tests
-
Unit Tests for ising_model
- Verify correct initialization (lattice size, values).
- Test energy computation and Metropolis-Hastings updates.
- Ensure temperature and grid size updates work as expected.
-
Integration Tests for simulator
- Check if the simulation runs correctly for multiple steps.
- Validate energy evolution at different temperatures.
- Ensure stopping and resuming work properly.
-
Performance Tests
- Benchmark execution time for different grid sizes.
- Profile memory usage for large simulations.
Adding these tests will improve reliability and maintainability
Issue: Lack of Tests for Simulation and Ising Model
Description
The project currently lacks unit and integration tests, making it difficult to ensure correctness and prevent regressions.
Proposed Tests
Unit Tests for
ising_modelIntegration Tests for
simulatorPerformance Tests
Adding these tests will improve reliability and maintainability