File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1007,12 +1007,12 @@ defmodule Schematic do
10071007 Enum . flat_map (
10081008 [
10091009 if opts [ :keys ] do
1010- "keys: #{ opts [ :keys ] } "
1010+ [ "keys: #{ inspect ( opts [ :keys ] ) } " ]
10111011 else
10121012 [ ]
10131013 end ,
10141014 if opts [ :values ] do
1015- "values: #{ opts [ :values ] } "
1015+ [ "values: #{ inspect ( opts [ :values ] ) } " ]
10161016 else
10171017 [ ]
10181018 end
Original file line number Diff line number Diff line change @@ -909,5 +909,15 @@ defmodule SchematicTest do
909909 |> Code . format_string! ( )
910910 |> IO . iodata_to_binary ( ) == inspect ( schematic )
911911 end
912+
913+ test "map with keys and values" do
914+ schematic = map ( keys: str ( ) , values: str ( ) )
915+
916+ assert """
917+ map(keys: str(), values: str())
918+ """
919+ |> Code . format_string! ( )
920+ |> IO . iodata_to_binary ( ) == Inspect.Schematic . inspect ( schematic , [ ] )
921+ end
912922 end
913923end
You can’t perform that action at this time.
0 commit comments