mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-05-07 12:42:52 -05:00
MAJOR IMPROVEMENT: Simplified test discovery logic - Removed restrictive valid_patterns requirement from testing framework - Any function starting with 'test_' is now automatically discovered - Follows standard pytest conventions - no maintenance overhead - Eliminates need to manually add patterns for new test functions CLEANED UP: Test function names across all 10 modules - Removed redundant '_comprehensive' suffix from all test functions - Updated 40+ test function names to be more concise and readable: * 00_setup: 6 functions (test_personal_info, test_system_info, etc.) * 01_tensor: 4 functions (test_tensor_creation, test_tensor_properties, etc.) * 02_activations: 1 function (test_activations) * 03_layers: 3 functions (test_matrix_multiplication, test_dense_layer, etc.) * 04_networks: 4 functions (test_sequential_networks, test_mlp_creation, etc.) * 05_cnn: 3 functions (test_convolution_operation, test_conv2d_layer, etc.) * 06_dataloader: 4 functions (test_dataset_interface, test_dataloader, etc.) * 07_autograd: 6 functions (test_variable_class, test_add_operation, etc.) * 08_optimizers: 5 functions (test_gradient_descent_step, test_sgd_optimizer, etc.) * 09_training: 6 functions (test_mse_loss, test_crossentropy_loss, etc.) * 10_compression: 6 functions (already cleaned up) VERIFICATION: All tests still pass - All 10 modules tested successfully with new discovery logic - Total test count maintained: 47 inline tests across all modules - No functionality lost, only improved maintainability RESULT: Much cleaner, more maintainable testing framework following standard conventions