# Type Promotion

Copyright © 2010 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, and document use rules apply.

## Abstract

Type Promotion Tests

This page describes W3C SPARQL Working Group's SPARQL 1.0 test suite.

### Contributing Tests

The test manifests and entries are built automatically from manifest.ttl using a Rake task. Tests may be contributed via pull request to https://github.com/w3c/rdf-tests with suitable changes to the manifest.ttl and referenced files.

### Distribution

Distributed under both the W3C Test Suite License and the W3C 3-clause BSD License. To contribute to a W3C Test Suite, see the policies and contribution forms.

### Disclaimer

UNDER BOTH MUTUALLY EXCLUSIVE LICENSES, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

## Test Descriptions

type-promotion-01: tP-double-double

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-02: tP-double-float

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-03: tP-double-decimal

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-04: tP-float-float

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-05: tP-float-decimal

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-06: tP-decimal-decimal

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-07: tP-integer-short

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-08: tP-nonPositiveInteger-short

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-09: tP-negativeInteger-short

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-10: tP-long-short

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-11: tP-int-short

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-12: tP-short-short

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-13: tP-byte-short

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-14: tP-nonNegativeInteger-short

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-15: tP-unsignedLong-short

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-16: tP-unsignedInt-short

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-17: tP-unsignedShort-short

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-18: tP-unsignedByte-short

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-19: tP-positiveInteger-short

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-20: tP-short-double

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-21: tP-short-float

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-22: tP-short-decimal

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    true.ttl
type-promotion-23: tP-short-short-fail

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    false.ttl
type-promotion-24: tP-byte-short-fail

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    false.ttl
type-promotion-25: tP-short-long-fail

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    false.ttl
type-promotion-26: tP-short-int-fail

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    false.ttl
type-promotion-27: tP-short-byte-fail

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    false.ttl
type-promotion-28: tP-double-float-fail

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    false.ttl
type-promotion-29: tP-double-decimal-fail

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    false.ttl
type-promotion-30: tP-float-decimal-fail

  Positive test: product of type promotion within the xsd:decimal type tree.

  type
    mf:QueryEvaluationTest
  approval
  action
  result
    false.ttl