Qulacs-Osaka / qulacs-osaka

Development branch of qulacs at Osaka Univ
MIT License
13 stars 6 forks source link

Allow to fail once in ObservableTest #283

Closed KowerKoint closed 2 years ago

KowerKoint commented 2 years ago

close #280

ObservableTest(特にMinimumEigenvalueByPowerMethod)は乱数次第でテストに落ちがちでした。 テスト内容は「5回や10回連続でテストを通す」というものでしたが、どうしてもたまに落ちるものは落ちるため、「10回テストを行い、9回以上一定以下の誤差を出せればOK」という形式に変更しました。

KowerKoint commented 2 years ago

[参考]わざとepsを極端に下げてテストに落としたエラーメッセージ https://github.com/Qulacs-Osaka/qulacs-osaka/runs/5687324116?check_suite_focus=true#step:13:322

KowerKoint commented 2 years ago

ファイル名と行数の出力を書き忘れていたので追加しました。より本家に近づいたと思います

KowerKoint commented 2 years ago

https://github.com/Qulacs-Osaka/qulacs-osaka/runs/5746404726?check_suite_focus=true#step:13:321 エラーメッセージサンプル