model_ratio_test.go 564 B

12345678910111213141516171819202122
  1. package ratio_setting
  2. import "testing"
  3. func TestGetCompletionRatioInfoGPT55UsesOfficialOutputMultiplier(t *testing.T) {
  4. info := GetCompletionRatioInfo("gpt-5.5")
  5. if info.Ratio != 6 {
  6. t.Fatalf("gpt-5.5 completion ratio = %v, want 6", info.Ratio)
  7. }
  8. if !info.Locked {
  9. t.Fatal("gpt-5.5 completion ratio should be locked to the official multiplier")
  10. }
  11. }
  12. func TestGetCompletionRatioGPT55DatedVariant(t *testing.T) {
  13. got := GetCompletionRatio("gpt-5.5-2026-04-24")
  14. if got != 6 {
  15. t.Fatalf("gpt-5.5 dated variant completion ratio = %v, want 6", got)
  16. }
  17. }