This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @public | |
*/ | |
const metadata = { | |
tag: "ui5-select", | |
slots: /** @lends sap.ui.webcomponents.main.Select.prototype */ { | |
/** | |
* Defines the <code>ui5-select</code> options. | |
* <br/><br/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { html, render } from 'lit-html'; | |
import { repeat } from 'lit-html/lib/repeat'; | |
const label = (props) => html`<div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div> | |
<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div> | |
<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div> | |
<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><label id="${props.id}" class=${props.class} style="${props.style}" for="${props.for}" tabindex="${props.tabindex}" title="${props.title}">${props.text}</label></div>`; | |
const app = (props) => html`<div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'Hash#fetch_deep' do | |
it 'can look up simple values' do | |
input = {meal: 'musaka'} | |
expect(input.fetch_deep('meal')).to eq 'musaka' | |
end | |
it 'can look up in nested objects' do | |
input = { menu: { | |
breakfast: 'banana', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe '#convert_between_temperature_units' do | |
it 'converts from Kelvin' do | |
expect(convert_between_temperature_units(1.2, "K", "F")).to be_within(0.01).of(-457.51) | |
expect(convert_between_temperature_units(4.2, "K", "C")).to be_within(0.01).of(-268.95) | |
expect(convert_between_temperature_units(1, "K", "K")).to eq(1) | |
expect(convert_between_temperature_units(0, "K", "K")).to eq(0) | |
end | |
it 'converts from Celsius' do | |
expect(convert_between_temperature_units(0, 'C', 'K')).to be_within(0.0001).of(273.15) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Collections; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.io.*; | |
/** | |
* | |
* @author Georgi Gaydarov | |
* | |
*/ |