mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-21 15:59:20 +03:00
Merge pull request #2635 from rtfeldman/issues-2607/multiline-input-repl
Allow multi string in RePL
This commit is contained in:
commit
485cbb4bd1
@ -55,7 +55,6 @@ impl<'a> Buf<'a> {
|
||||
|
||||
pub fn push_str_allow_spaces(&mut self, s: &str) {
|
||||
debug_assert!(!self.beginning_of_line);
|
||||
debug_assert!(!s.contains('\n'));
|
||||
|
||||
self.flush_spaces();
|
||||
|
||||
|
@ -519,11 +519,11 @@ fn four_element_record() {
|
||||
);
|
||||
}
|
||||
|
||||
// #[test]
|
||||
// fn multiline_string() {
|
||||
// // If a string contains newlines, format it as a multiline string in the output
|
||||
// expect_success(r#""\n\nhi!\n\n""#, "\"\"\"\n\nhi!\n\n\"\"\"");
|
||||
// }
|
||||
#[test]
|
||||
fn multiline_string() {
|
||||
// If a string contains newlines, format it as a multiline string in the output
|
||||
expect_success(r#""\n\nhi!\n\n""#, "\"\n\nhi!\n\n\" : Str");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn list_of_3_field_records() {
|
||||
|
@ -65,7 +65,7 @@ section.source {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
section.source input {
|
||||
section.source textarea {
|
||||
height: 32px;
|
||||
padding: 8px;
|
||||
margin-bottom: 16px;
|
||||
|
@ -20,7 +20,7 @@
|
||||
</section>
|
||||
|
||||
<section class="source">
|
||||
<input autofocus id="source-input" class="code" placeholder="Type some Roc code and press Enter" />
|
||||
<textarea autofocus id="source-input" class="code" placeholder="Type some Roc code and press Enter"></textarea>
|
||||
</section>
|
||||
</div>
|
||||
<script type="module" src="/repl.js"></script>
|
||||
|
Loading…
Reference in New Issue
Block a user