allow-url-language-selection
yann300 3 years ago
parent 9da0570371
commit daf1eb9500
  1. 1
      libs/remix-solidity/src/compiler/compiler-input.ts
  2. 8
      libs/remix-solidity/test/compiler-input.ts

@ -42,4 +42,3 @@ export function getValidLanguage (val: string): Language {
} }
return null return null
} }

@ -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'

Loading…
Cancel
Save