|
|
@ -1,14 +1,14 @@ |
|
|
|
'use strict' |
|
|
|
'use strict' |
|
|
|
import tape from 'tape' |
|
|
|
import tape from 'tape' |
|
|
|
import { getValidLanguage } from "../src/compiler/compiler-input"; |
|
|
|
import { getValidLanguage } from '../src/compiler/compiler-input' |
|
|
|
import { Language } from "../src/compiler/types"; |
|
|
|
import { Language } from '../src/compiler/types' |
|
|
|
|
|
|
|
|
|
|
|
tape('compiler-input', function (t) { |
|
|
|
tape('compiler-input', function (t) { |
|
|
|
t.test('getValidLanguage', function (st) { |
|
|
|
t.test('getValidLanguage', function (st) { |
|
|
|
st.plan(9) |
|
|
|
st.plan(9) |
|
|
|
|
|
|
|
|
|
|
|
const correctYul: Language = 'Yul'; |
|
|
|
const correctYul: Language = 'Yul' |
|
|
|
const correctSolidity: Language = 'Solidity'; |
|
|
|
const correctSolidity: Language = 'Solidity' |
|
|
|
|
|
|
|
|
|
|
|
const yulUpperCase = 'Yul' |
|
|
|
const yulUpperCase = 'Yul' |
|
|
|
const yulLowerCase = 'yul' |
|
|
|
const yulLowerCase = 'yul' |
|
|
|