mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-24 17:05:03 +00:00
fix unit tests, lower python dependency to 3.9
This commit is contained in:
parent
ee67374aae
commit
ad9f0d265c
11 changed files with 66 additions and 56 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import pytest
|
||||
|
||||
from reasoning_gym.algorithmic.word_sorting import WordSortingConfig, WordSortingDataset, TextTransformation
|
||||
from reasoning_gym.algorithmic.word_sorting import TextTransformation, WordSortingConfig, WordSortingDataset
|
||||
|
||||
|
||||
def test_word_sorting_config_validation():
|
||||
|
|
@ -38,7 +38,7 @@ def test_word_sorting_transformations():
|
|||
"""Test different text transformations"""
|
||||
seed = 42
|
||||
size = 5
|
||||
|
||||
|
||||
# Test LOWERCASE
|
||||
config = WordSortingConfig(transformation=TextTransformation.LOWERCASE, seed=seed, size=size)
|
||||
dataset = WordSortingDataset(config)
|
||||
|
|
@ -64,14 +64,7 @@ def test_word_sorting_transformations():
|
|||
|
||||
def test_word_sorting_dataset_items():
|
||||
"""Test basic properties of generated items"""
|
||||
config = WordSortingConfig(
|
||||
min_words=3,
|
||||
max_words=6,
|
||||
min_word_length=3,
|
||||
max_word_length=8,
|
||||
size=10,
|
||||
seed=42
|
||||
)
|
||||
config = WordSortingConfig(min_words=3, max_words=6, min_word_length=3, max_word_length=8, size=10, seed=42)
|
||||
dataset = WordSortingDataset(config)
|
||||
|
||||
for i in range(len(dataset)):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue