You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: module/core/former/tests/inc/enum_unnamed_tests/usecase1_only_test.rs
+33-29Lines changed: 33 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -15,41 +15,45 @@
15
15
// - The `enum_variant_manual_construction` test demonstrates the equivalent manual construction using `InnerType::former()...form()`.
16
16
// - Both tests assert that the resulting enum instances match manually constructed expected values. This verifies that both derived and manual implementations correctly provide subformer starters and integrate with the inner types' formers for nested building.
17
17
18
-
// Renamed test to reflect its purpose: testing the subformer construction
18
+
// Modified test to work with current enum Former implementation pattern
19
19
#[ test ]
20
20
fnenum_variant_subformer_construction()
21
21
{
22
22
// Test Matrix Row: T22.1 (Implicitly, as this tests the behavior expected by the matrix)
23
-
// Construct the Prompt variant using the generated subformer starter
24
-
let prompt_step = FunctionStep::prompt()// Expects subformer starter
25
-
.content("Explain the code.")
26
-
.form();// Calls the specialized PromptEnd
27
-
let expected_prompt = FunctionStep::Prompt(Prompt{content:"Explain the code.".to_string()});
0 commit comments