File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def __hash__(self) -> int:
3232 def __str__ (self ) -> str :
3333 """Return a string representation of the amount in PAC."""
3434 pac_value = self .value / NANO_PAC_PER_PAC
35- return f"{ pac_value } PAC "
35+ return f"{ pac_value } "
3636
3737 @classmethod
3838 def from_nano_pac (cls , a : int ) -> "Amount" :
Original file line number Diff line number Diff line change @@ -65,39 +65,39 @@ def test_str(self):
6565 test_cases = [
6666 {
6767 "input" : Amount (0 ),
68- "expected" : "0.0 PAC " ,
68+ "expected" : "0.0" ,
6969 },
7070 {
7171 "input" : Amount .from_pac (42.5 ),
72- "expected" : "42.5 PAC " ,
72+ "expected" : "42.5" ,
7373 },
7474 {
7575 "input" : Amount .from_pac (1.0 ),
76- "expected" : "1.0 PAC " ,
76+ "expected" : "1.0" ,
7777 },
7878 {
7979 "input" : Amount .from_pac (0.5 ),
80- "expected" : "0.5 PAC " ,
80+ "expected" : "0.5" ,
8181 },
8282 {
8383 "input" : Amount .from_pac (1000000.0 ),
84- "expected" : "1000000.0 PAC " ,
84+ "expected" : "1000000.0" ,
8585 },
8686 {
8787 "input" : Amount .from_pac (0.000000001 ),
88- "expected" : "1e-09 PAC " ,
88+ "expected" : "1e-09" ,
8989 },
9090 {
9191 "input" : Amount .from_pac (- 10.5 ),
92- "expected" : "-10.5 PAC " ,
92+ "expected" : "-10.5" ,
9393 },
9494 {
9595 "input" : Amount .from_nano_pac (1000000000 ),
96- "expected" : "1.0 PAC " ,
96+ "expected" : "1.0" ,
9797 },
9898 {
9999 "input" : Amount .from_nano_pac (500000000 ),
100- "expected" : "0.5 PAC " ,
100+ "expected" : "0.5" ,
101101 },
102102 ]
103103
You can’t perform that action at this time.
0 commit comments