@@ -193,6 +193,23 @@ class SubnetCalcUITest: XCTestCase {
193193 XCTAssertEqual ( subnetcalcWindow. staticTexts [ " ipv6decimaltext " ] . value as! String , " 32.1.13.184.0.0.133.163.0.0.0.0.172.31.128.1 " )
194194 XCTAssertEqual ( subnetcalcWindow. staticTexts [ " ipv6arpatext " ] . value as! String , " 1.0.0.8.f.1.c.a.0.0.0.0.0.0.0.0.3.a.5.8.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa " )
195195
196+ subnetcalcWindow. tabs [ " IPv6 " ] . click ( )
197+ ipaddrfieldTextField. click ( )
198+ ipaddrfieldTextField. typeKey ( " a " , modifierFlags: . command)
199+ ipaddrfieldTextField. typeKey ( . delete, modifierFlags: [ ] )
200+ ipaddrfieldTextField. typeText ( " 2a07:2900:8077:ffb1:e0::4/126 \r " )
201+ XCTAssertEqual ( subnetcalcWindow. staticTexts [ " ipv6addrtext " ] . value as! String , " 2a07:2900:8077:ffb1:e0::4 " )
202+ XCTAssertEqual ( subnetcalcWindow. staticTexts [ " ipv4addrconvtext " ] . value as! String , " 0.0.0.4 " )
203+ XCTAssertEqual ( subnetcalcWindow. comboBoxes [ " ipv6maskbitscombo " ] . value as! String , " 126 " )
204+ XCTAssertEqual ( subnetcalcWindow. comboBoxes [ " ipv6maxsubnetscombo " ] . value as! String , " /126 \t 1 network " )
205+ XCTAssertEqual ( subnetcalcWindow. comboBoxes [ " ipv6maxhostscombo " ] . value as! String , " 4 " )
206+ XCTAssertEqual ( subnetcalcWindow. staticTexts [ " ipv6networktext " ] . value as! String , " 2a07:2900:8077:ffb1:e0::4 " )
207+ XCTAssertEqual ( subnetcalcWindow. staticTexts [ " ipv6rangetext " ] . value as! String , " 2a07:2900:8077:ffb1:00e0:0000:0000:0004 - 2a07:2900:8077:ffb1:00e0:0000:0000:0007 " )
208+ XCTAssertEqual ( subnetcalcWindow. staticTexts [ " ipv6typetext " ] . value as! String , " None " )
209+ XCTAssertEqual ( subnetcalcWindow. staticTexts [ " ipv6hexatext " ] . value as! String , " 0x2a0729008077ffb100e0000000000004 " )
210+ XCTAssertEqual ( subnetcalcWindow. staticTexts [ " ipv6decimaltext " ] . value as! String , " 42.7.41.0.128.119.255.177.0.224.0.0.0.0.0.4 " )
211+ XCTAssertEqual ( subnetcalcWindow. staticTexts [ " ipv6arpatext " ] . value as! String , " 4.0.0.0.0.0.0.0.0.0.0.0.0.e.0.0.1.b.f.f.7.7.0.8.0.0.9.2.7.0.a.2.ip6.arpa " )
212+
196213 subnetcalcWindow. tabs [ " IPv6 " ] . click ( )
197214 ipaddrfieldTextField. click ( )
198215 ipaddrfieldTextField. typeKey ( " a " , modifierFlags: . command)
0 commit comments