@@ -13,7 +13,7 @@ defmodule Diffo.Type.ValueTest do
1313
1414 describe "value cast and dump" do
1515 test "cast_input dynamic using Value.dynamic" do
16- value = Value . dynamic ( Patch , % Patch { aEnd: 1 , zEnd: 42 } )
16+ value = Value . dynamic ( % Patch { aEnd: 1 , zEnd: 42 } )
1717
1818 assert { :ok , % Ash.Union { type: :dynamic , value: % Dynamic { type: Patch } } } =
1919 Ash.Type . cast_input ( Value , value , Value . subtype_constraints ( ) )
@@ -33,7 +33,7 @@ defmodule Diffo.Type.ValueTest do
3333 Ash.Type . cast_input ( Value , value , Value . subtype_constraints ( ) )
3434 end
3535
36- @ tag bugged: "raw Dynamic struct cast_input requires Value.dynamic/2 wrapper"
36+ @ tag bugged: "raw Dynamic struct cast_input requires Value wrapper"
3737 @ tag :skip
3838 test "cast_input dynamic" do
3939 value = % Dynamic { type: Patch , value: % Patch { aEnd: 1 , zEnd: 42 } }
@@ -92,7 +92,7 @@ defmodule Diffo.Type.ValueTest do
9292 end
9393
9494 test "roundtrip dynamic from Value.dynamic" do
95- value = Value . dynamic ( Patch , % Patch { aEnd: 1 , zEnd: 42 } )
95+ value = Value . dynamic ( % Patch { aEnd: 1 , zEnd: 42 } )
9696 { :ok , cast } = Ash.Type . cast_input ( Value , value , Value . subtype_constraints ( ) )
9797 { :ok , dumped } = Ash.Type . dump_to_native ( Value , cast , Value . subtype_constraints ( ) )
9898 { :ok , result } = Ash.Type . cast_stored ( Value , dumped , Value . subtype_constraints ( ) )
0 commit comments