feat(pty): rename get_pts() -> get_pts_name()

This commit is contained in:
Leroy Hopson 2024-03-03 17:49:49 +13:00
parent c6609ebae5
commit b78bdf3136
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
4 changed files with 12 additions and 11 deletions

View file

@ -43,7 +43,7 @@ func test_open_pty_has_correct_name():
var new_pts = helper.get_pts()
for pt in original_pts:
new_pts.erase(pt)
assert_eq(subject.get_pts(), new_pts[0])
assert_eq(subject.get_pts_name(), new_pts[0])
func xtest_open_pty_has_correct_win_size():

View file

@ -11,8 +11,6 @@ func get_described_class():
class TestInterface:
extends PTYTest
## API V2.
# Properties.
# TODO: Implement cols property.
@ -46,6 +44,9 @@ class TestInterface:
func test_has_method_open():
assert_has_method_with_return_type("open", TYPE_INT)
func test_has_method_get_pts_name():
assert_has_method_with_return_type("get_pts_name", TYPE_STRING)
func test_has_method_resize():
assert_has_method_with_return_type("resize", TYPE_NIL)