Skip to content

Latest commit

 

History

History
65 lines (54 loc) · 753 Bytes

File metadata and controls

65 lines (54 loc) · 753 Bytes

Test case: Import module

JavaScript:

import 'module.js'

Python:

import module

Test case: NameSpace import

JavaScript:

import * as module from 'module.js'

Python:

import module

Test case: NameSpace import with rename

JavaScript:

import * as mod from 'module.js'

Python:

import module as mod

Test case: Named import

JavaScript:

import {hello, world} from 'module.js'

Python:

from module import hello, world

Test case: Default import

JavaScript:

import hello from 'module.js'

Python:

from module import hello

Test case: Nested imports

JavaScript:

import 'libraries/module.js'

Python:

import libraries.module