From 5ea254058895e8cf30969371a7401e6b0dac4e08 Mon Sep 17 00:00:00 2001 From: jaakko Date: Tue, 14 Apr 2026 18:58:20 +0300 Subject: [PATCH] =?UTF-8?q?CodeBench:=20promptit=20kokonaan=20englanniksi?= =?UTF-8?q?=20=E2=80=94=20poistettu=20suomenkieliset=20esimerkit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kipina-codebench/prompts/code-rs.md | 2 +- kipina-codebench/prompts/code-small.md | 10 +++++----- kipina-codebench/prompts/golden-compact-py.md | 2 +- kipina-codebench/prompts/golden-compact-rs.md | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/kipina-codebench/prompts/code-rs.md b/kipina-codebench/prompts/code-rs.md index 553aeba..26c24b8 100644 --- a/kipina-codebench/prompts/code-rs.md +++ b/kipina-codebench/prompts/code-rs.md @@ -69,5 +69,5 @@ async fn spawn_server() -> (reqwest::Client, String) { } - Each #[tokio::test] calls spawn_server() to get (client, url) -- Unique descriptive data in Finnish, NOT generic "test" strings +- Unique descriptive data, NOT generic "test" strings - Use serde_json::json!() for request bodies diff --git a/kipina-codebench/prompts/code-small.md b/kipina-codebench/prompts/code-small.md index 9c32b29..807117f 100644 --- a/kipina-codebench/prompts/code-small.md +++ b/kipina-codebench/prompts/code-small.md @@ -38,14 +38,14 @@ class Post(Base): Example FK test patterns: ``` def test_create_post(): - author = client.post("/authors/", json={"name": "Kirjailija"}).json() - response = client.post("/posts/", json={"title": "Artikkeli", "author_id": author["id"]}) + author = client.post("/authors/", json={"name": "Jane Austen"}).json() + response = client.post("/posts/", json={"title": "First Post", "author_id": author["id"]}) assert response.status_code == 201 def test_update_post(): - author = client.post("/authors/", json={"name": "Päivittäjä"}).json() - created = client.post("/posts/", json={"title": "Vanha", "author_id": author["id"]}).json() - response = client.put(f"/posts/{created['id']}", json={"title": "Uusi", "author_id": author["id"]}) + author = client.post("/authors/", json={"name": "Mark Twain"}).json() + created = client.post("/posts/", json={"title": "Old Title", "author_id": author["id"]}).json() + response = client.put(f"/posts/{created['id']}", json={"title": "New Title", "author_id": author["id"]}) assert response.status_code == 201 ``` diff --git a/kipina-codebench/prompts/golden-compact-py.md b/kipina-codebench/prompts/golden-compact-py.md index c6272b8..a268071 100644 --- a/kipina-codebench/prompts/golden-compact-py.md +++ b/kipina-codebench/prompts/golden-compact-py.md @@ -27,7 +27,7 @@ main.py: test_main.py: test.db + override_get_db + TestClient - Unique Finnish data per test ("Osta maitoa", "Haettava tehtävä"...) + Unique descriptive data per test ("Buy milk", "Fetchable task"...) test_create → 201 + assert "id" in json test_list → post first, get, assert len >= 1 test_get_by_id → post, get by id, assert id matches diff --git a/kipina-codebench/prompts/golden-compact-rs.md b/kipina-codebench/prompts/golden-compact-rs.md index 692b638..ebae247 100644 --- a/kipina-codebench/prompts/golden-compact-rs.md +++ b/kipina-codebench/prompts/golden-compact-rs.md @@ -34,7 +34,7 @@ tests/api_test.rs: Each test: SqlitePool::connect("sqlite::memory:"), init_db, app(pool) Spawn on random port: TcpListener::bind("127.0.0.1:0"), axum::serve reqwest::Client for HTTP calls - Unique Finnish data ("Osta maitoa", "Haettava tehtävä"...) + Unique descriptive data ("Buy milk", "Fetchable task"...) test_create → 201 + assert id exists test_list → post first, get, assert len >= 1 test_get_by_id → post, get, assert id matches