mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-05-31 20:15:51 -05:00
🧪 Add missing test function calls in 01_setup module
- Added test_unit_personal_info_basic() call after function definition - Added test_unit_system_info_basic() call after function definition Ensures test functions are actually executed when cells run, providing immediate feedback to students.
This commit is contained in:
@@ -490,6 +490,9 @@ def test_unit_personal_info_basic():
|
||||
print("✅ Personal info function tests passed!")
|
||||
print(f"✅ TinyTorch configured for: {personal['developer']}")
|
||||
|
||||
# Run the test
|
||||
test_unit_personal_info_basic()
|
||||
|
||||
# %%
|
||||
def test_unit_system_info_basic():
|
||||
"""Test system_info function implementation."""
|
||||
@@ -525,6 +528,9 @@ def test_unit_system_info_basic():
|
||||
print("✅ System info function tests passed!")
|
||||
print(f"✅ Python: {sys_info['python_version']} on {sys_info['platform']}")
|
||||
|
||||
# Run the test
|
||||
test_unit_system_info_basic()
|
||||
|
||||
# %% [markdown]
|
||||
"""
|
||||
## 🧪 Module Testing
|
||||
|
||||
Reference in New Issue
Block a user