Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 247 for unclosed4 (0.17 sec)

  1. src/text/template/parse/parse_test.go

    	// Check line numbers are accurate.
    	{"unclosed1",
    		"line1\n{{",
    		hasError, `unclosed1:2: unclosed action`},
    	{"unclosed2",
    		"line1\n{{define `x`}}line2\n{{",
    		hasError, `unclosed2:3: unclosed action`},
    	{"unclosed3",
    		"line1\n{{\"x\"\n\"y\"\n",
    		hasError, `unclosed3:4: unclosed action started at unclosed3:2`},
    	{"unclosed4",
    		"{{\n\n\n\n\n",
    		hasError, `unclosed4:6: unclosed action started at unclosed4:1`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  2. src/text/template/parse/lex_test.go

    	}},
    	{"unclosed action", "{{", []item{
    		tLeft,
    		mkItem(itemError, "unclosed action"),
    	}},
    	{"EOF in action", "{{range", []item{
    		tLeft,
    		tRange,
    		mkItem(itemError, "unclosed action"),
    	}},
    	{"unclosed quote", "{{\"\n\"}}", []item{
    		tLeft,
    		mkItem(itemError, "unterminated quoted string"),
    	}},
    	{"unclosed raw quote", "{{`xx}}", []item{
    		tLeft,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 23 15:03:43 UTC 2022
    - 13.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/PluginsBlockInterpreterTest.kt

            )
        }
    
        @Test
        fun `syntax error - id() with unclosed string`() {
            assertDynamicInterpretationOf(
                """id("plugin-id-1) ; id("plugin-id-2")"""",
                "Expecting token of type RBRACE, but got IDENTIFIER ('id') instead"
            )
        }
    
        @Test
        fun `syntax error - id() with unclosed parens`() {
            assertDynamicInterpretationOf(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 15:15:27 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_body/test_tutorial001.py

                            "error": "Expecting property name enclosed in double quotes"
                        },
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", 1],
                        "msg": "Expecting property name enclosed in double quotes: line 1 column 2 (char 1)",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_body/test_tutorial001_py310.py

                            "error": "Expecting property name enclosed in double quotes"
                        },
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", 1],
                        "msg": "Expecting property name enclosed in double quotes: line 1 column 2 (char 1)",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. src/net/mail/message.go

    		return nil, errors.New("mail: no angle-addr")
    	}
    	spec, err = p.consumeAddrSpec()
    	if err != nil {
    		return nil, err
    	}
    	if !p.consume('>') {
    		return nil, errors.New("mail: unclosed angle-addr")
    	}
    	debug.Printf("parseAddress: spec=%q", spec)
    
    	return []*Address{{
    		Name:    displayName,
    		Address: spec,
    	}}, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  7. src/text/template/parse/lex.go

    	// Pipe symbols separate and are emitted.
    	delim, _ := l.atRightDelim()
    	if delim {
    		if l.parenDepth == 0 {
    			return lexRightDelim
    		}
    		return l.errorf("unclosed left paren")
    	}
    	switch r := l.next(); {
    	case r == eof:
    		return l.errorf("unclosed action")
    	case isSpace(r):
    		l.backup() // Put space back in case we have " -}}".
    		return lexSpace
    	case r == '=':
    		return l.emit(itemAssign)
    	case r == ':':
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 04 22:36:12 UTC 2022
    - 18.1K bytes
    - Viewed (0)
  8. src/encoding/xml/marshal.go

    // written XML is invalid (e.g. by containing unclosed elements).
    func (p *printer) Close() error {
    	if p.closed {
    		return nil
    	}
    	p.closed = true
    	if err := p.w.Flush(); err != nil {
    		return err
    	}
    	if len(p.tags) > 0 {
    		return fmt.Errorf("unclosed tag <%s>", p.tags[len(p.tags)-1].Local)
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/RangeSet.java

       * value}, or {@code null} if this range set does not contain {@code value}.
       */
      @CheckForNull
      Range<C> rangeContaining(C value);
    
      /**
       * Returns {@code true} if there exists a non-empty range enclosed by both a member range in this
       * range set and the specified range. This is equivalent to calling {@code
       * subRangeSet(otherRange)} and testing whether the resulting range set is non-empty.
       *
       * @since 20.0
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RangeSet.java

       * value}, or {@code null} if this range set does not contain {@code value}.
       */
      @CheckForNull
      Range<C> rangeContaining(C value);
    
      /**
       * Returns {@code true} if there exists a non-empty range enclosed by both a member range in this
       * range set and the specified range. This is equivalent to calling {@code
       * subRangeSet(otherRange)} and testing whether the resulting range set is non-empty.
       *
       * @since 20.0
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top