Test creating QA instance.
(self)
| 23 | """Tests for QA dataclass.""" |
| 24 | |
| 25 | def test_create_qa(self): |
| 26 | """Test creating QA instance.""" |
| 27 | qa = QA(idx=0, question="What is AI?", answer="Artificial Intelligence") |
| 28 | assert qa.idx == 0 |
| 29 | assert qa.question == "What is AI?" |
| 30 | assert qa.answer == "Artificial Intelligence" |
| 31 | |
| 32 | def test_qa_with_original(self): |
| 33 | """Test QA with original question/answer.""" |