Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
18 lines
528 B
Python
18 lines
528 B
Python
import unittest
|
|
|
|
from run_experiment_9_9 import describe
|
|
|
|
|
|
class CampaignStatisticsTest(unittest.TestCase):
|
|
def test_repeated_run_statistics_report_t_interval(self):
|
|
result = describe([0.0, 0.5, 1.0])
|
|
self.assertEqual(3, result["n"])
|
|
self.assertEqual(0.5, result["mean"])
|
|
self.assertGreater(result["sample_stdev"], 0)
|
|
self.assertLess(result["ci95_t"][0], result["mean"])
|
|
self.assertGreater(result["ci95_t"][1], result["mean"])
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|