Skip to content

Lack of Tests for Simulation and Ising Model #2

@Ellzo

Description

@Ellzo

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

  1. 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.
  2. 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.
  3. Performance Tests

    • Benchmark execution time for different grid sizes.
    • Profile memory usage for large simulations.

Adding these tests will improve reliability and maintainability

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions