Beispiel #1
0
 def test_get(self) -> None:
     x = StrStrMap({"test": "value"})
     self.assertEqual(x.get("test"), "value")
     # pyre-fixme[6]: Expected `str` for 1st param but got `int`.
     self.assertIs(x.get(5), None)
     # pyre-fixme[6]: Expected `str` for 1st param but got `Map__string_string`.
     self.assertIs(x.get(x), None)
Beispiel #2
0
 def test_get(self) -> None:
     x = StrStrMap({"test": "value"})
     self.assertEqual(x.get("test"), "value")
     self.assertIs(x.get(5), None)  # type: ignore
     self.assertIs(x.get(x), None)  # type: ignore
Beispiel #3
0
 def test_get(self) -> None:
     x = StrStrMap({"test": "value"})
     self.assertEqual(x.get("test"), "value")
     self.assertIs(x.get(5), None)  # type: ignore
     self.assertIs(x.get(x), None)  # type: ignore