> On Fri,  1 Nov 2013 11:14:17 +0900 (JST)
> [email protected] (YAMAMOTO Takashi) wrote:
> 
>>>> --- 
>>>> a/ryu/tests/unit/ofproto/json/of13/4-50-ofp_meter_stats_reply.packet.json
>>>> +++ 
>>>> b/ryu/tests/unit/ofproto/json/of13/4-50-ofp_meter_stats_reply.packet.json
>>>> @@ -15,7 +15,7 @@
>>>>                 "duration_nsec": 480000, 
>>>>                 "duration_sec": 0, 
>>>>                 "flow_count": 0, 
>>>> -               "len": 56,
>>>> +               "len": 56, 
>>> 
>>> The difference is a tailing white space? Then, the comparison code had
>>> better ignore? The format doesn't matter. The contents matter.
>> 
>> unit tests are not affected by whitespaces.
> 
> I see.
> 
>> the normalization is merely to make diffs easier to read.
> 
> Putting a tailing white space is better for something?

json.dumps() seems to append these whitespaces.  (i don't know why)
i don't think it's worth to write code to remove them.

YAMAMOTO Takashi

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to