tests/testthat/test_chinese_api.R

# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate

context("Test ChineseApi")

api.instance <- ChineseApi$new()

test_that("ChineseNameCandidates", {
  # tests for ChineseNameCandidates
  # base path: https://v2.namsor.com/NamSorAPIv2
  # Identify Chinese name candidates, based on the romanized name.
  # @param character  chinese.surname.latin   
  # @param character  chinese.given.name.latin   
  # @return [RomanizedNameOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ChineseNameCandidatesBatch", {
  # tests for ChineseNameCandidatesBatch
  # base path: https://v2.namsor.com/NamSorAPIv2
  # Identify Chinese name candidates, based on the romanized name (firstName &#x3D; chineseGivenName; lastName&#x3D;chineseSurname).
  # @param BatchFirstLastNameIn  batch.first.last.name.in  A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname  (optional)
  # @return [BatchNameMatchCandidatesOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ChineseNameCandidatesGenderBatch", {
  # tests for ChineseNameCandidatesGenderBatch
  # base path: https://v2.namsor.com/NamSorAPIv2
  # Identify Chinese name candidates, based on the romanized name (firstName &#x3D; chineseGivenName; lastName&#x3D;chineseSurname).
  # @param BatchFirstLastNameIn  batch.first.last.name.in  A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname  (optional)
  # @return [BatchNameMatchCandidatesOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ChineseNameGenderCandidates", {
  # tests for ChineseNameGenderCandidates
  # base path: https://v2.namsor.com/NamSorAPIv2
  # Identify Chinese name candidates, based on the romanized name - having a known gender (&#39;male&#39; or &#39;female&#39;)
  # @param character  chinese.surname.latin   
  # @param character  chinese.given.name.latin   
  # @param character  known.gender   
  # @return [RomanizedNameOut]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})
wing328/namsor-r-client documentation built on May 26, 2019, 7:01 p.m.