mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-09-05 16:40:37 +00:00
[cleanup] Misc (#10075)
Closes #10303 Authored by: bashonly, seproDev, jucor, c-basalt Co-authored-by: sepro <[email protected]> Co-authored-by: Julien Cornebise <[email protected]> Co-authored-by: c-basalt <[email protected]>
This commit is contained in:
co-authored by
sepro
Julien Cornebise
c-basalt
parent
d4b99a2333
commit
6aaf96a3d6
@@ -92,6 +92,7 @@ class TestJSInterpreter(unittest.TestCase):
|
||||
self._test('function f(){return 0 && 1 || 2;}', 2)
|
||||
self._test('function f(){return 0 ?? 42;}', 0)
|
||||
self._test('function f(){return "life, the universe and everything" < 42;}', False)
|
||||
self._test('function f(){return 0 - 7 * - 6;}', 42)
|
||||
|
||||
def test_array_access(self):
|
||||
self._test('function f(){var x = [1,2,3]; x[0] = 4; x[0] = 5; x[2.0] = 7; return x;}', [5, 2, 7])
|
||||
|
||||
Reference in New Issue
Block a user